version update
This commit is contained in:
@@ -47,9 +47,9 @@ class HutkoResultModuleFrontController extends ModuleFrontController
|
|||||||
public function postProcess(): void
|
public function postProcess(): void
|
||||||
{
|
{
|
||||||
// Retrieve essential parameters from the request.
|
// Retrieve essential parameters from the request.
|
||||||
$orderStatus = Tools::getValue('order_status', false);
|
$orderStatus = Tools::getValue('order_status');
|
||||||
$transaction_id = Tools::getValue('order_id', false); // This is the combined cart_id|timestamp
|
$transaction_id = Tools::getValue('order_id'); // This is the combined cart_id|timestamp
|
||||||
$amountReceived = round((float)Tools::getValue('amount', 0) / 100, 2);
|
$amountReceived = round((float)Tools::getValue('actual_amount', Tools::getValue('amount', 0)) / 100, 2);
|
||||||
|
|
||||||
// Basic validation: If critical parameters are missing, redirect to home.
|
// Basic validation: If critical parameters are missing, redirect to home.
|
||||||
if (!$transaction_id || !$orderStatus || !$amountReceived) {
|
if (!$transaction_id || !$orderStatus || !$amountReceived) {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class Hutko extends PaymentModule
|
|||||||
{
|
{
|
||||||
$this->name = 'hutko';
|
$this->name = 'hutko';
|
||||||
$this->tab = 'payments_gateways';
|
$this->tab = 'payments_gateways';
|
||||||
$this->version = '1.1.0';
|
$this->version = '1.1.1';
|
||||||
$this->author = 'Hutko';
|
$this->author = 'Hutko';
|
||||||
$this->bootstrap = true;
|
$this->bootstrap = true;
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
Reference in New Issue
Block a user