Skip to main content

Wrong Moneybookers notificaiton

15 years 1 month ago #26987 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 ?

Please Log in or Create an account to join the conversation.

15 years 1 month ago - 15 years 1 month ago #26991 by nicolas
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.
Last edit: 15 years 1 month ago by nicolas.

Please Log in or Create an account to join the conversation.

15 years 1 month ago #27033 by vasjaf
Thank you, Nicolas.
It works now.

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum