diff --git a/controllers/front/result.php b/controllers/front/result.php index 93bd42a..20dc940 100644 --- a/controllers/front/result.php +++ b/controllers/front/result.php @@ -47,9 +47,9 @@ class HutkoResultModuleFrontController extends ModuleFrontController public function postProcess(): void { // Retrieve essential parameters from the request. - $orderStatus = Tools::getValue('order_status', false); - $transaction_id = Tools::getValue('order_id', false); // This is the combined cart_id|timestamp - $amountReceived = round((float)Tools::getValue('amount', 0) / 100, 2); + $orderStatus = Tools::getValue('order_status'); + $transaction_id = Tools::getValue('order_id'); // This is the combined cart_id|timestamp + $amountReceived = round((float)Tools::getValue('actual_amount', Tools::getValue('amount', 0)) / 100, 2); // Basic validation: If critical parameters are missing, redirect to home. if (!$transaction_id || !$orderStatus || !$amountReceived) { diff --git a/hutko.php b/hutko.php index 40efce0..e317d17 100644 --- a/hutko.php +++ b/hutko.php @@ -40,7 +40,7 @@ class Hutko extends PaymentModule { $this->name = 'hutko'; $this->tab = 'payments_gateways'; - $this->version = '1.1.0'; + $this->version = '1.1.1'; $this->author = 'Hutko'; $this->bootstrap = true; parent::__construct();