diff --git a/controllers/front/callback.php b/controllers/front/callback.php index eadbdc1..38b00e3 100644 --- a/controllers/front/callback.php +++ b/controllers/front/callback.php @@ -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; } diff --git a/hutko.php b/hutko.php index d361c8b..7bc2f55 100644 --- a/hutko.php +++ b/hutko.php @@ -44,7 +44,7 @@ class Hutko extends PaymentModule { $this->name = 'hutko'; $this->tab = 'payments_gateways'; - $this->version = '1.2.0'; + $this->version = '1.3.0'; $this->author = 'Hutko'; $this->bootstrap = true; parent::__construct(); @@ -969,7 +969,7 @@ class Hutko extends PaymentModule } $amountFloat = round((int)$response['response']['reversal_amount'] / 100, 2); - $this->addOrderMessage($order, $this->trans('Refund success.', [], 'Modules.Hutko.Admin') . ' ' . $currency->iso_code . $amountFloat); + $this->addOrderMessage($order, $this->trans('Refund success.', [], 'Modules.Hutko.Admin') . ' ' . $currency->iso_code . $amountFloat . '. [' . $comment . ']'); $order->addOrderPayment($amountFloat, $this->displayName, $orderPayment->transaction_id . '_refund', $currency); $order->setCurrentState((int)Configuration::get('PS_OS_REFUND'));