@@ -27,13 +27,13 @@ |
||
| 27 | 27 | |
| 28 | 28 | const ERRORS = [ |
| 29 | 29 | -1 => "eres_sylius_iyzico_plugin.payment.invalid_3d_secure_signature_or_verification", |
| 30 | - 2=>"eres_sylius_iyzico_plugin.payment.card_holder_or_issuer_not_registered_to_3d_secure_network", |
|
| 31 | - 3=> "eres_sylius_iyzico_plugin.payment.issuer_is_not_registered_to_3d_secure_network", |
|
| 32 | - 4=>"eres_sylius_iyzico_plugin.payment.verification_is_not_possible_card_holder_chosen_to_register_later_on_system", |
|
| 33 | - 5=>"eres_sylius_iyzico_plugin.payment.verification_is_not_possbile", |
|
| 34 | - 6=>"eres_sylius_iyzico_plugin.payment.3d_secure_error", |
|
| 35 | - 7=>"eres_sylius_iyzico_plugin.payment.system_error", |
|
| 36 | - 8=>"eres_sylius_iyzico_plugin.payment.unknown_card" |
|
| 30 | + 2=>"eres_sylius_iyzico_plugin.payment.card_holder_or_issuer_not_registered_to_3d_secure_network", |
|
| 31 | + 3=> "eres_sylius_iyzico_plugin.payment.issuer_is_not_registered_to_3d_secure_network", |
|
| 32 | + 4=>"eres_sylius_iyzico_plugin.payment.verification_is_not_possible_card_holder_chosen_to_register_later_on_system", |
|
| 33 | + 5=>"eres_sylius_iyzico_plugin.payment.verification_is_not_possbile", |
|
| 34 | + 6=>"eres_sylius_iyzico_plugin.payment.3d_secure_error", |
|
| 35 | + 7=>"eres_sylius_iyzico_plugin.payment.system_error", |
|
| 36 | + 8=>"eres_sylius_iyzico_plugin.payment.unknown_card" |
|
| 37 | 37 | ]; |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | $model['iyzico_error_message'] = $payment['error_message']; |
| 99 | 99 | } else { |
| 100 | 100 | $model['iyzico_status'] = IyzicoBridgeInterface::FAILED_STATUS; |
| 101 | - $model['iyzico_error_message'] = isset(self::ERRORS[$mdStatus])?self::ERRORS[$mdStatus]:self::ERRORS[-1]; |
|
| 101 | + $model['iyzico_error_message'] = isset(self::ERRORS[$mdStatus]) ?self::ERRORS[$mdStatus] : self::ERRORS[-1]; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | return; |