From b0c81807fab201f585a6e9fb761f797ee8620660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20=C5=A0mulk=C5=A1tys?= Date: Fri, 9 Feb 2024 15:13:12 +0200 Subject: [PATCH 01/12] SL-216-method-version-compatibility --- saferpayofficial.php | 2 +- src/Core/Order/Verification/CanSendOrderConfirmationEmail.php | 2 +- src/Service/Request/InitializeRequestObjectCreator.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/saferpayofficial.php b/saferpayofficial.php index 9904a91b..42032262 100755 --- a/saferpayofficial.php +++ b/saferpayofficial.php @@ -572,7 +572,7 @@ public function hookActionEmailSendBefore($params) $canSendOrderConfirmationEmail = $this->getService(\Invertus\SaferPay\Core\Order\Verification\CanSendOrderConfirmationEmail::class); if ($params['template'] === 'order_conf') { - return $canSendOrderConfirmationEmail->verify($order, (int) $order->current_state); + return $canSendOrderConfirmationEmail->verify((int) $order->current_state); } if ($params['template'] === 'new_order') { diff --git a/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php b/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php index a83daeb7..231dd4ec 100644 --- a/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php +++ b/src/Core/Order/Verification/CanSendOrderConfirmationEmail.php @@ -31,7 +31,7 @@ class CanSendOrderConfirmationEmail { - public function verify(\Order $order, $orderStatusId) + public function verify($orderStatusId) { if (!\Configuration::get(\Invertus\SaferPay\Config\SaferPayConfig::SAFERPAY_SEND_ORDER_CONFIRMATION)) { return false; diff --git a/src/Service/Request/InitializeRequestObjectCreator.php b/src/Service/Request/InitializeRequestObjectCreator.php index 8ce62fd9..0ca1e5e4 100755 --- a/src/Service/Request/InitializeRequestObjectCreator.php +++ b/src/Service/Request/InitializeRequestObjectCreator.php @@ -70,8 +70,8 @@ public function create( $payment = $this->requestObjectCreator->createPayment($cart, $totalPrice); $payer = new Payer(); - $languageCode = !empty($cart->getAssociatedLanguage()->iso_code) - ? $cart->getAssociatedLanguage()->iso_code + $languageCode = !empty(\Context::getContext()->language->iso_code) + ? \Context::getContext()->language->iso_code : 'en'; $payer->setLanguageCode($languageCode); From 8579d0c39fbbd836160953510447824bf2ba3030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20=C5=A0mulk=C5=A1tys?= Date: Fri, 9 Feb 2024 15:53:29 +0200 Subject: [PATCH 02/12] test fix --- src/Exception/CouldNotProcessCheckout.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Exception/CouldNotProcessCheckout.php b/src/Exception/CouldNotProcessCheckout.php index e6d64667..faa18807 100644 --- a/src/Exception/CouldNotProcessCheckout.php +++ b/src/Exception/CouldNotProcessCheckout.php @@ -23,13 +23,11 @@ namespace Invertus\SaferPay\Exception; -use Invertus\SaferPay\Exception\Restriction\SaferPayException; - if (!defined('_PS_VERSION_')) { exit; } -class CouldNotProcessCheckout extends SaferPayException +class CouldNotProcessCheckout extends \Invertus\SaferPay\Exception\Restriction\SaferPayException { /** * @param int $cartId From ed7d099293096168381b043085b9e333d688fa98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20=C5=A0mulk=C5=A1tys?= Date: Fri, 9 Feb 2024 16:35:29 +0200 Subject: [PATCH 03/12] exception namespace fix --- src/Exception/CouldNotProcessCheckout.php | 2 +- src/Exception/SaferPayException.php | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/Exception/CouldNotProcessCheckout.php b/src/Exception/CouldNotProcessCheckout.php index faa18807..b8b19281 100644 --- a/src/Exception/CouldNotProcessCheckout.php +++ b/src/Exception/CouldNotProcessCheckout.php @@ -27,7 +27,7 @@ exit; } -class CouldNotProcessCheckout extends \Invertus\SaferPay\Exception\Restriction\SaferPayException +class CouldNotProcessCheckout extends SaferPayException { /** * @param int $cartId diff --git a/src/Exception/SaferPayException.php b/src/Exception/SaferPayException.php index 59b41e90..6be0f9b9 100644 --- a/src/Exception/SaferPayException.php +++ b/src/Exception/SaferPayException.php @@ -21,9 +21,7 @@ *@license SIX Payment Services */ -namespace Invertus\SaferPay\Exception\Restriction; - -use Invertus\SaferPay\Exception\ExceptionCode; +namespace Invertus\SaferPay\Exception; if (!defined('_PS_VERSION_')) { exit; @@ -48,12 +46,7 @@ public function getContext() return $this->context; } - /** - * @param \Exception $exception - * - * @return static - */ - public static function unknownError($exception) + public static function unknownError() { return new static( 'An unknown error error occurred. Please check system logs or contact Click to Pay support.', From 916e273cbe2be431f7e436815a2116455056c1ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20=C5=A0mulk=C5=A1tys?= Date: Fri, 9 Feb 2024 16:43:39 +0200 Subject: [PATCH 04/12] log message fix --- src/Exception/SaferPayException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exception/SaferPayException.php b/src/Exception/SaferPayException.php index 6be0f9b9..41906751 100644 --- a/src/Exception/SaferPayException.php +++ b/src/Exception/SaferPayException.php @@ -49,7 +49,7 @@ public function getContext() public static function unknownError() { return new static( - 'An unknown error error occurred. Please check system logs or contact Click to Pay support.', + 'An unknown error error occurred. Please check system logs or contact support.', ExceptionCode::UNKNOWN_ERROR ); } From 37b0368c066a8c0a68306b9a74f0b7374c651770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20=C5=A0mulk=C5=A1tys?= Date: Fri, 9 Feb 2024 16:45:55 +0200 Subject: [PATCH 05/12] typo --- src/Exception/Order/CouldNotChangeOrderStatus.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Exception/Order/CouldNotChangeOrderStatus.php b/src/Exception/Order/CouldNotChangeOrderStatus.php index 60ee5286..f1685f5a 100644 --- a/src/Exception/Order/CouldNotChangeOrderStatus.php +++ b/src/Exception/Order/CouldNotChangeOrderStatus.php @@ -23,8 +23,6 @@ namespace Invertus\SaferPay\Exception; -use Invertus\SaferPay\Exception\Restriction\SaferPayException; - if (!defined('_PS_VERSION_')) { exit; } From 1ea6af47850492dd2e452d1ea48351e858f9425a Mon Sep 17 00:00:00 2001 From: Gytautas Date: Thu, 22 Feb 2024 16:44:47 +0200 Subject: [PATCH 06/12] prestashop 1.6 compatiobility --- controllers/front/notify.php | 15 ++++++++--- controllers/front/return.php | 25 ++++++++++++++++--- controllers/front/validation.php | 9 ++++++- src/EntityBuilder/SaferPayOrderBuilder.php | 7 +++++- src/Processor/CheckoutProcessor.php | 12 +++++++-- src/Service/CartDuplicationService.php | 8 +++++- .../InitializeRequestObjectCreator.php | 10 ++++---- views/templates/hook/front/payments.tpl | 2 +- 8 files changed, 71 insertions(+), 17 deletions(-) diff --git a/controllers/front/notify.php b/controllers/front/notify.php index 8f2c09d1..c82a097d 100755 --- a/controllers/front/notify.php +++ b/controllers/front/notify.php @@ -76,8 +76,12 @@ public function postProcess() $updateSaferPayOrderAction->run(new SaferPayOrder($saferPayOrderId), self::SAFERPAY_ORDER_AUTHORIZE_ACTION); // If order does not exist but assertion is valid that means order authorized or captured. - $orderId = Order::getIdByCartId($cartId); - + if (method_exists('Order', 'getIdByCartId')) { + $orderId = Order::getIdByCartId($cartId); + } else { + // For PrestaShop 1.6 use the alternative method + $orderId = Order::getOrderByCartId($cartId); + } if (!$orderId) { /** @var CheckoutProcessor $checkoutProcessor **/ $checkoutProcessor = $this->module->getService(CheckoutProcessor::class); @@ -92,7 +96,12 @@ public function postProcess() $checkoutProcessor->run($checkoutData); - $orderId = Order::getIdByCartId($cart->id); + if (method_exists('Order', 'getIdByCartId')) { + $orderId = Order::getIdByCartId($cartId); + } else { + // For PrestaShop 1.6 or lower, use the alternative method + $orderId = Order::getOrderByCartId($cartId); + } } //TODO look into pipeline design pattern to use when object is modified in multiple places to avoid this issue. diff --git a/controllers/front/return.php b/controllers/front/return.php index 878c6ced..06d6308d 100755 --- a/controllers/front/return.php +++ b/controllers/front/return.php @@ -88,7 +88,12 @@ public function postProcess() $checkoutProcessor = $this->module->getService(CheckoutProcessor::class); $checkoutProcessor->run($checkoutData); - $orderId = \Order::getIdByCartId($cartId); + if (method_exists('Order', 'getIdByCartId')) { + $orderId = Order::getIdByCartId($cartId); + } else { + // For PrestaShop 1.6 use the alternative method + $orderId = Order::getOrderByCartId($cartId); + } $paymentBehaviourWithout3DS = (int) Configuration::get(SaferPayConfig::PAYMENT_BEHAVIOR_WITHOUT_3D); @@ -175,7 +180,14 @@ private function getSuccessControllerName($isBusinessLicence, $fieldToken) return $successController; } - private function executeTransaction(int $orderId, int $selectedCard) + /** + * @param int $orderId + * @param int $selectedCard + * + * @return \Invertus\SaferPay\DTO\Response\Assert\AssertBody + * @throws Exception + */ + private function executeTransaction($orderId, $selectedCard) { /** @var SaferPayTransactionAuthorization $saferPayTransactionAuthorization */ $saferPayTransactionAuthorization = $this->module->getService(SaferPayTransactionAuthorization::class); @@ -189,7 +201,14 @@ private function executeTransaction(int $orderId, int $selectedCard) return $response; } - private function executePaymentPageAssertion(int $cartId, int $isBusinessLicence) + /** + * @param int $cartId + * @param int $isBusinessLicence + * + * @return \Invertus\SaferPay\DTO\Response\Assert\AssertBody|null + * @throws Exception + */ + private function executePaymentPageAssertion($cartId, $isBusinessLicence) { /** @var SaferPayTransactionAssertion $transactionAssert */ diff --git a/controllers/front/validation.php b/controllers/front/validation.php index 7ee765ce..de8d1cf2 100755 --- a/controllers/front/validation.php +++ b/controllers/front/validation.php @@ -96,12 +96,19 @@ public function postProcess() $exceptionService = $this->module->getService(SaferPayExceptionService::class); $this->errors[] = $exceptionService->getErrorMessageForException($exception, $exceptionService->getErrorMessages()); + if (method_exists('Order', 'getIdByCartId')) { + $orderId = Order::getIdByCartId($this->context->cart->id); + } else { + // For PrestaShop 1.6 use the alternative method + $orderId = Order::getOrderByCartId($this->context->cart->id); + } + $redirectLink = $this->context->link->getModuleLink( $this->module->name, 'fail', [ 'cartId' => $this->context->cart->id, - 'orderId' => Order::getIdByCartId($this->context->cart->id), + 'orderId' => $orderId, 'secureKey' => $this->context->cart->secure_key, 'moduleId' => $this->module->id, ], diff --git a/src/EntityBuilder/SaferPayOrderBuilder.php b/src/EntityBuilder/SaferPayOrderBuilder.php index 0ea782e4..4018db98 100755 --- a/src/EntityBuilder/SaferPayOrderBuilder.php +++ b/src/EntityBuilder/SaferPayOrderBuilder.php @@ -37,7 +37,12 @@ class SaferPayOrderBuilder //TODO to pass $body as InitializeBody. public function create($body, $cartId, $customerId, $isTransaction) { - $orderId = Order::getIdByCartId($cartId); + if (method_exists('Order', 'getIdByCartId')) { + $orderId = Order::getIdByCartId($cartId); + } else { + // For PrestaShop 1.6 use the alternative method + $orderId = Order::getOrderByCartId($cartId); + } $saferPayOrder = new SaferPayOrder(); $saferPayOrder->token = $body->Token; diff --git a/src/Processor/CheckoutProcessor.php b/src/Processor/CheckoutProcessor.php index 57adc22c..c475bcb7 100644 --- a/src/Processor/CheckoutProcessor.php +++ b/src/Processor/CheckoutProcessor.php @@ -179,7 +179,7 @@ private function processCreateSaferPayOrder($initializeBody, $cartId, $customerI ); } - private function processAuthorizedOrder(CheckoutData $data, Cart $cart): void + private function processAuthorizedOrder(CheckoutData $data, Cart $cart) { try { $saferPayOrder = new SaferPayOrder($this->saferPayOrderRepository->getIdByCartId($cart->id)); @@ -188,7 +188,15 @@ private function processAuthorizedOrder(CheckoutData $data, Cart $cart): void $this->processCreateOrder($cart, $data->getPaymentMethod()); } - $order = new Order(Order::getIdByCartId($cart->id)); + if (method_exists('Order', 'getIdByCartId')) { + $orderId = Order::getIdByCartId($cart->id); + $order = new Order($orderId); + } else { + // For PrestaShop 1.6 use the alternative method + $orderId = Order::getOrderByCartId($cart->id); + $order = new Order($orderId); + } + $saferPayOrder->id_order = $order->id; if ($data->getOrderStatus() === 'AUTHORIZED') { diff --git a/src/Service/CartDuplicationService.php b/src/Service/CartDuplicationService.php index de5af3db..16ecdbd5 100755 --- a/src/Service/CartDuplicationService.php +++ b/src/Service/CartDuplicationService.php @@ -60,7 +60,13 @@ private function restoreCartRuleQuantity($cartId, $cartRuleId) $cartRule->quantity++; $cartRule->update(); - $orderId = Order::getIdByCartId($cartId); + if (method_exists('Order', 'getIdByCartId')) { + $orderId = Order::getIdByCartId($cartId); + } else { + // For PrestaShop 1.6 or lower, use the alternative method + $orderId = Order::getOrderByCartId($cartId); + } + $sql = 'DELETE FROM `' . _DB_PREFIX_ . 'order_cart_rule` WHERE id_order = ' . (int) $orderId . ' AND id_cart_rule = ' . (int) $cartRuleId; diff --git a/src/Service/Request/InitializeRequestObjectCreator.php b/src/Service/Request/InitializeRequestObjectCreator.php index 8ce62fd9..1f91e290 100755 --- a/src/Service/Request/InitializeRequestObjectCreator.php +++ b/src/Service/Request/InitializeRequestObjectCreator.php @@ -69,12 +69,12 @@ public function create( $totalPrice = (int) (round($totalPrice)); $payment = $this->requestObjectCreator->createPayment($cart, $totalPrice); $payer = new Payer(); +// +// $languageCode = !empty($cart->getAssociatedLanguage()->iso_code) +// ? $cart->getAssociatedLanguage()->iso_code +// : 'en'; - $languageCode = !empty($cart->getAssociatedLanguage()->iso_code) - ? $cart->getAssociatedLanguage()->iso_code - : 'en'; - - $payer->setLanguageCode($languageCode); +// $payer->setLanguageCode($languageCode); $returnUrl = $this->requestObjectCreator->createReturnUrl($returnUrl); $notification = $isBusinessLicence ? null : $this->requestObjectCreator->createNotification($customerEmail, $notifyUrl); $deliveryAddressForm = $this->requestObjectCreator->createDeliveryAddressForm(); diff --git a/views/templates/hook/front/payments.tpl b/views/templates/hook/front/payments.tpl index e7e673ec..40e57e98 100755 --- a/views/templates/hook/front/payments.tpl +++ b/views/templates/hook/front/payments.tpl @@ -21,5 +21,5 @@ *} {foreach $payments as $payment} - {$payment|escape:'htmlall':'UTF-8'} + {$payment} {/foreach} \ No newline at end of file From 335541cc0c96eae350059abbb9ce02a0af08e49b Mon Sep 17 00:00:00 2001 From: Gytautas Date: Thu, 22 Feb 2024 16:46:47 +0200 Subject: [PATCH 07/12] language dfix --- src/Service/Request/InitializeRequestObjectCreator.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Service/Request/InitializeRequestObjectCreator.php b/src/Service/Request/InitializeRequestObjectCreator.php index 1f91e290..0ca1e5e4 100755 --- a/src/Service/Request/InitializeRequestObjectCreator.php +++ b/src/Service/Request/InitializeRequestObjectCreator.php @@ -69,12 +69,12 @@ public function create( $totalPrice = (int) (round($totalPrice)); $payment = $this->requestObjectCreator->createPayment($cart, $totalPrice); $payer = new Payer(); -// -// $languageCode = !empty($cart->getAssociatedLanguage()->iso_code) -// ? $cart->getAssociatedLanguage()->iso_code -// : 'en'; -// $payer->setLanguageCode($languageCode); + $languageCode = !empty(\Context::getContext()->language->iso_code) + ? \Context::getContext()->language->iso_code + : 'en'; + + $payer->setLanguageCode($languageCode); $returnUrl = $this->requestObjectCreator->createReturnUrl($returnUrl); $notification = $isBusinessLicence ? null : $this->requestObjectCreator->createNotification($customerEmail, $notifyUrl); $deliveryAddressForm = $this->requestObjectCreator->createDeliveryAddressForm(); From bf2e4e29bb81f2ffff13fb0e0dcec16b61410cc9 Mon Sep 17 00:00:00 2001 From: Gytautas Date: Thu, 22 Feb 2024 17:41:42 +0200 Subject: [PATCH 08/12] cart notice fixed --- controllers/front/return.php | 1 - src/Service/TransactionFlow/SaferPayTransactionAssertion.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front/return.php b/controllers/front/return.php index 06d6308d..7e3d2575 100755 --- a/controllers/front/return.php +++ b/controllers/front/return.php @@ -215,7 +215,6 @@ private function executePaymentPageAssertion($cartId, $isBusinessLicence) $transactionAssert = $this->module->getService(SaferPayTransactionAssertion::class); $assertionResponse = $transactionAssert->assert($cartId); - return $assertionResponse; } } diff --git a/src/Service/TransactionFlow/SaferPayTransactionAssertion.php b/src/Service/TransactionFlow/SaferPayTransactionAssertion.php index 05667d4c..006fcd09 100755 --- a/src/Service/TransactionFlow/SaferPayTransactionAssertion.php +++ b/src/Service/TransactionFlow/SaferPayTransactionAssertion.php @@ -83,6 +83,7 @@ public function assert($cartId) ); $saferPayOrder->transaction_id = $assertBody->getTransaction()->getId(); + $saferPayOrder->id_cart = $cartId; $saferPayOrder->update(); return $assertBody; From b4148d6afca81cc6d4bf2908ddd94e0d73e8b137 Mon Sep 17 00:00:00 2001 From: Gytautas Date: Thu, 22 Feb 2024 17:45:54 +0200 Subject: [PATCH 09/12] incompatible type removed --- tests/Unit/Service/SaferPayPaymentNotationTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Service/SaferPayPaymentNotationTest.php b/tests/Unit/Service/SaferPayPaymentNotationTest.php index 277a3b2c..954925fb 100755 --- a/tests/Unit/Service/SaferPayPaymentNotationTest.php +++ b/tests/Unit/Service/SaferPayPaymentNotationTest.php @@ -28,14 +28,14 @@ class SaferPayPaymentNotationTest extends UnitTestCase { /** @dataProvider getPaymentMethodForDisplayDataProvider */ - public function testGetForDisplay(string $paymentMethod, string $expectedResult) + public function testGetForDisplay($paymentMethod, $expectedResult) { $result = (new \Invertus\SaferPay\Service\SaferPayPaymentNotation)->getForDisplay($paymentMethod); $this->assertEquals($expectedResult, $result); } /** @dataProvider getPaymentMethodDataProvider */ - public function testGetShortName(string $paymentMethod, string $expectedResult) + public function testGetShortName($paymentMethod, $expectedResult) { $result = (new \Invertus\SaferPay\Service\SaferPayPaymentNotation)->getShortName($paymentMethod); $this->assertEquals($expectedResult, $result); From 6235f4c8c210f6964d68eccf8713e1929cfb2c6f Mon Sep 17 00:00:00 2001 From: Gytautas Date: Fri, 23 Feb 2024 16:57:31 +0200 Subject: [PATCH 10/12] hosted payment page compatibility with ps 1.6 improved --- saferpayofficial.php | 2 +- src/Entity/SaferPayOrder.php | 5 +++++ .../TransactionFlow/SaferPayTransactionAuthorization.php | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/saferpayofficial.php b/saferpayofficial.php index 42032262..9f0bb7d8 100755 --- a/saferpayofficial.php +++ b/saferpayofficial.php @@ -615,7 +615,7 @@ public function hookActionOrderStatusUpdate($params = []) /** @var \Invertus\SaferPay\Core\Order\Verification\CanSendOrderConfirmationEmail $canSendOrderConfirmationEmail */ $canSendOrderConfirmationEmail = $this->getService(\Invertus\SaferPay\Core\Order\Verification\CanSendOrderConfirmationEmail::class); - if ($canSendOrderConfirmationEmail->verify($order, (int) $orderStatus->id)) { + if ($canSendOrderConfirmationEmail->verify((int) $orderStatus->id)) { $mailService->sendOrderConfMail($order, (int) $orderStatus->id); } } diff --git a/src/Entity/SaferPayOrder.php b/src/Entity/SaferPayOrder.php index 69240344..2bac92c9 100755 --- a/src/Entity/SaferPayOrder.php +++ b/src/Entity/SaferPayOrder.php @@ -35,6 +35,11 @@ class SaferPayOrder extends ObjectModel */ public $id_order; + /** + * @var Int|null + */ + public $id_cart; + /** * @var Int */ diff --git a/src/Service/TransactionFlow/SaferPayTransactionAuthorization.php b/src/Service/TransactionFlow/SaferPayTransactionAuthorization.php index d1e95b99..92c1b2fa 100755 --- a/src/Service/TransactionFlow/SaferPayTransactionAuthorization.php +++ b/src/Service/TransactionFlow/SaferPayTransactionAuthorization.php @@ -104,6 +104,7 @@ public function authorize($cartId, $saveCard, $selectedCard) ); $saferPayOrder->transaction_id = $assertBody->getTransaction()->getId(); + $saferPayOrder->id_cart = $cartId; $saferPayOrder->update(); return $assertBody; From 84fac51c0c6ef3909aa4d2adab746950a07473f6 Mon Sep 17 00:00:00 2001 From: Gytautas Date: Mon, 26 Feb 2024 16:57:06 +0200 Subject: [PATCH 11/12] escape fix --- views/templates/hook/front/payments.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/templates/hook/front/payments.tpl b/views/templates/hook/front/payments.tpl index 40e57e98..e42ed3b0 100755 --- a/views/templates/hook/front/payments.tpl +++ b/views/templates/hook/front/payments.tpl @@ -21,5 +21,5 @@ *} {foreach $payments as $payment} - {$payment} + {$payment|cleanHtml nofilter} {/foreach} \ No newline at end of file From ba7f9a1ab00497fe3f00ffc038d715333e3d814c Mon Sep 17 00:00:00 2001 From: Gytautas Date: Tue, 27 Feb 2024 13:23:05 +0200 Subject: [PATCH 12/12] version bump and changelog updated --- changelog.md | 5 ++++- saferpayofficial.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 8760bdef..218a60ab 100755 --- a/changelog.md +++ b/changelog.md @@ -153,4 +153,7 @@ - BO : Additional improvements and fixes - ## [1.2.0] - * -- BO : Added order creation after authorization functionality \ No newline at end of file +- BO : Added order creation after authorization functionality + +- ## [1.2.1] - * +- FO : Increased compatibility with PrestaShop 1.6 \ No newline at end of file diff --git a/saferpayofficial.php b/saferpayofficial.php index 9f0bb7d8..612fec76 100755 --- a/saferpayofficial.php +++ b/saferpayofficial.php @@ -40,7 +40,7 @@ public function __construct($name = null) { $this->name = 'saferpayofficial'; $this->author = 'Invertus'; - $this->version = '1.2.0'; + $this->version = '1.2.1'; $this->module_key = '3d3506c3e184a1fe63b936b82bda1bdf'; $this->displayName = 'SaferpayOfficial'; $this->description = 'Saferpay Payment module';