Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ PrestaShop 1.6.x, 1.7.x and 8.x

# Changelog

## [4.0.1]
### Fixed
- Triggered order update when saving missing transaction data.

## [4.0.0]
### Fixed
- Streamline and simplify management of order lines and amounts.
Expand Down
10 changes: 8 additions & 2 deletions altapay.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public function __construct()
{
$this->name = 'altapay';
$this->tab = 'payments_gateways';
$this->version = '4.0.0';
$this->version = '4.0.1';
$this->author = 'AltaPay A/S';
$this->is_eu_compatible = 1;
$this->ps_versions_compliancy = ['min' => '1.6.0.1', 'max' => '8.2.1'];
$this->ps_versions_compliancy = ['min' => '1.6.0.1', 'max' => '8.2.3'];
$this->currencies = true;
$this->currencies_mode = 'checkbox';
$this->bootstrap = true;
Expand Down Expand Up @@ -2398,6 +2398,9 @@ public function hookAdminOrder($params)
PrestaShopLogger::addLog("Could not sync payment info for Order ID: {$params['id_order']}", 3, null, $this->name, $this->id, true);

return false;
} else {
$orderDetail->date_upd = date('Y-m-d H:i:s');
$orderDetail->update();
}
}

Expand Down Expand Up @@ -3842,6 +3845,9 @@ public function syncOrderDataFromGateway($results, $orderDetail, $params)
PrestaShopLogger::addLog("Could not sync payment info for Order ID: {$params['id_order']}", 3, null, $this->name, $this->id, true);

return false;
} else {
$orderDetail->date_upd = date('Y-m-d H:i:s');
$orderDetail->update();
}
} catch (Exception $e) {
PrestaShopLogger::addLog('Payment API Error: ' . $e->getMessage(), 3, null, $this->name, $this->id, true);
Expand Down
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<module>
<name>altapay</name>
<displayName><![CDATA[AltaPay for PrestaShop]]></displayName>
<version><![CDATA[4.0.0]]></version>
<version><![CDATA[4.0.1]]></version>
<description><![CDATA[AltaPay: Payments less complicated]]></description>
<author><![CDATA[AltaPay A/S]]></author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down
2 changes: 1 addition & 1 deletion helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
function transactionInfo($transactionInfo = [])
{
$pluginName = 'altapay';
$pluginVersion = '4.0.0';
$pluginVersion = '4.0.1';

// Transaction info
$transactionInfo['ecomPlatform'] = 'PrestaShop';
Expand Down