Skip to content

Commit

Permalink
Merge pull request #121 from Invertus/SL-183/version-increase-with-sc…
Browse files Browse the repository at this point in the history
…ript-1.1.4

SL-183/update-local-API-version-configuration
  • Loading branch information
APabisz authored Aug 17, 2023
2 parents 109ad3f + 2fb1eb6 commit 7ea6f2f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion saferpayofficial.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
36 changes: 36 additions & 0 deletions upgrade/install-1.1.4.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
*NOTICE OF LICENSE
*
*This source file is subject to the Open Software License (OSL 3.0)
*that is bundled with this package in the file LICENSE.txt.
*It is also available through the world-wide-web at this URL:
*http://opensource.org/licenses/osl-3.0.php
*If you did not receive a copy of the license and are unable to
*obtain it through the world-wide-web, please send an email
*to [email protected] so we can send you a copy immediately.
*
*DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
*versions in the future. If you wish to customize PrestaShop for your
*needs please refer to http://www.prestashop.com for more information.
*
*@author INVERTUS UAB www.invertus.eu <[email protected]>
*@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;
}

0 comments on commit 7ea6f2f

Please sign in to comment.