- Posts: 48
- Thank you received: 0
Wrong Moneybookers notificaiton
14 years 11 months ago #26987
by vasjaf
Wrong Moneybookers notificaiton was created by vasjaf
Hi,
when the amount (0.69€) is paid, I get notification:
Subject: "Moneybookers payment notification refused:invalid amount"
and message:
"Hello,
A Moneybookers notification was refused because the amount received (0.69EUR) is different from the order amount (69EUR)
..."
Something is wrong with the coma. The amount 0.69EUR was regularly paid and the money got to Moneybookers account.
The problem is just with the notification and cancellation of payment in Hikashop.
I have the 1.5.3 version. Is this solved in 1.5.4 ?
when the amount (0.69€) is paid, I get notification:
Subject: "Moneybookers payment notification refused:invalid amount"
and message:
"Hello,
A Moneybookers notification was refused because the amount received (0.69EUR) is different from the order amount (69EUR)
..."
Something is wrong with the coma. The amount 0.69EUR was regularly paid and the money got to Moneybookers account.
The problem is just with the notification and cancellation of payment in Hikashop.
I have the 1.5.3 version. Is this solved in 1.5.4 ?
Please Log in or Create an account to join the conversation.
14 years 11 months ago - 14 years 11 months ago #26991
by nicolas
Replied by nicolas on topic Re: Wrong Moneybookers notificaiton
Hi,
You should replace the line:
$price_check = trim(trim(round($dbOrder->order_full_price,(int)$currency->currency_locale), '0'), '.').$currency->currency_code;
by:
$price_check = round($dbOrder->order_full_price,(int)$currency->currency_locale);
if(strpos($price_check,'.')){
$price_check =rtrim(rtrim($price_check, '0'), '.');
}
$price_check.=$currency->currency_code;
in the file plugins/hikashoppayment/moneybookers.php
That should solve the problem.
You should replace the line:
$price_check = trim(trim(round($dbOrder->order_full_price,(int)$currency->currency_locale), '0'), '.').$currency->currency_code;
by:
$price_check = round($dbOrder->order_full_price,(int)$currency->currency_locale);
if(strpos($price_check,'.')){
$price_check =rtrim(rtrim($price_check, '0'), '.');
}
$price_check.=$currency->currency_code;
in the file plugins/hikashoppayment/moneybookers.php
That should solve the problem.
Last edit: 14 years 11 months ago by nicolas.
Please Log in or Create an account to join the conversation.
14 years 11 months ago #27033
by vasjaf
Replied by vasjaf on topic Re: Wrong Moneybookers notificaiton
Thank you, Nicolas.
It works now.
It works now.
Please Log in or Create an account to join the conversation.
Time to create page: 0.208 seconds