improve orders message

This commit is contained in:
O K
2025-06-02 14:42:33 +03:00
parent 8194e18e85
commit bab4d43a44
2 changed files with 4 additions and 3 deletions

View File

@@ -71,6 +71,7 @@ class HutkoCallbackModuleFrontController extends ModuleFrontController
$amountFloat = round($callbackAmount / 100, 2);
$order->addOrderPayment($amountFloat, $this->module->displayName, $calbackContent['order_id'], $this->context->currency);
$order->setCurrentState($expectedState);
$this->module->addOrderMessage($order, $this->trans('Pay via Hutko: ', [], 'Modules.Hutko.Admin') . ' ' . $calbackContent['currency'] . $amountFloat);
}
}
exit('OK');
@@ -130,7 +131,7 @@ class HutkoCallbackModuleFrontController extends ModuleFrontController
throw new Exception('Invalid signature');
}
if (Configuration::get('HUTKO_SAVE_LOGS')) {
$this->module->log('CalbackContent: ' .json_encode($calbackContent));
$this->module->log('CalbackContent: ' . json_encode($calbackContent));
}
return $calbackContent;
}