From 2fb1eb66d056e72484b8ee574ba619c04e143dc8 Mon Sep 17 00:00:00 2001 From: Arkadiusz Pabisz Date: Thu, 17 Aug 2023 14:13:34 +0200 Subject: [PATCH] Update local API version configuration --- changelog.md | 4 ++++ saferpayofficial.php | 2 +- upgrade/install-1.1.4.php | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 upgrade/install-1.1.4.php diff --git a/changelog.md b/changelog.md index af45b045..70c39188 100755 --- a/changelog.md +++ b/changelog.md @@ -129,3 +129,7 @@ - BO : ReturnSuccessUrl and ReturnFailUrl replaced by ReturnUrl container - BO : NotificationUrl container replaced by SuccessNotificationUrl and FailNotificationUrl, - BO : Display from BillingAddressForm and DeliveryAddressForm containers replaced by AddressSource + +## [1.1.4] - * + +- BO : Fixed API version issue diff --git a/saferpayofficial.php b/saferpayofficial.php index 2995eeae..2b5791ed 100755 --- a/saferpayofficial.php +++ b/saferpayofficial.php @@ -36,7 +36,7 @@ public function __construct($name = null) { $this->name = 'saferpayofficial'; $this->author = 'Invertus'; - $this->version = '1.1.3'; + $this->version = '1.1.4'; $this->module_key = '3d3506c3e184a1fe63b936b82bda1bdf'; $this->displayName = 'SaferpayOfficial'; $this->description = 'Saferpay Payment module'; diff --git a/upgrade/install-1.1.4.php b/upgrade/install-1.1.4.php new file mode 100644 index 00000000..8b710f13 --- /dev/null +++ b/upgrade/install-1.1.4.php @@ -0,0 +1,36 @@ + + *@copyright SIX Payment Services + *@license SIX Payment Services + */ + +use Invertus\SaferPay\Config\SaferPayConfig; +use Invertus\SaferPay\DTO\Request\RequestHeader; + +if (!defined('_PS_VERSION_')) { + exit; +} +function upgrade_module_1_1_4($module) +{ + Configuration::updateValue(RequestHeader::SPEC_VERSION, SaferPayConfig::API_VERSION); + Configuration::updateValue(RequestHeader::SPEC_REFUND_VERSION, SaferPayConfig::API_VERSION); + + return true; +}