@@ -73,7 +73,7 @@ |
||
73 | 73 | ], |
74 | 74 | 'label' => 'eres_sylius_iyzico_plugin.ui.threeds', |
75 | 75 | ]) |
76 | - ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
76 | + ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
77 | 77 | if (!method_exists(Customer::class, 'getIdentityNumber')) { |
78 | 78 | $this->flashBag->set('error', 'Iyzico payment plugin Installation failed'); |
79 | 79 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | 'secret_key', |
35 | 35 | ]; |
36 | 36 | |
37 | - $config['payum.api'] = static function (ArrayObject $config): array { |
|
37 | + $config['payum.api'] = static function(ArrayObject $config): array { |
|
38 | 38 | $config->validateNotEmpty($config['payum.required_options']); |
39 | 39 | |
40 | 40 | return [ |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | 'street' => $order->getShippingAddress()->getStreet(), |
65 | 65 | 'postcode' => $order->getShippingAddress()->getPostcode(), |
66 | 66 | ], |
67 | - 'iyzico_items' => array_map(function ($orderItem) { |
|
67 | + 'iyzico_items' => array_map(function($orderItem) { |
|
68 | 68 | return [ |
69 | 69 | 'id' => $orderItem->getId(), |
70 | 70 | 'name' => $orderItem->getProductName(), |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | 'category' => $orderItem->getProduct()->getMainTaxon() ? $orderItem->getProduct()->getMainTaxon()->getName() : "empty" |
73 | 73 | ]; |
74 | 74 | }, iterator_to_array($order->getItems())), |
75 | - 'iyzico_shipment' => array_map(function ($shipment) use ($order) { |
|
75 | + 'iyzico_shipment' => array_map(function($shipment) use ($order) { |
|
76 | 76 | return [ |
77 | 77 | 'id' => $shipment->getMethod()->getId(), |
78 | 78 | 'name' => $shipment->getMethod()->getName(), |
@@ -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; |