version update
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user