version update

This commit is contained in:
O K
2025-05-31 16:31:04 +03:00
parent 9c7cfff5d6
commit 7bd84d8582
2 changed files with 4 additions and 4 deletions

View File

@@ -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) {