Wrong Moneybookers notificaiton

  • Posts: 48
  • Thank you received: 0
12 years 6 months ago #26987

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.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
12 years 6 months ago #26991

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: 12 years 6 months ago by nicolas.

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

  • Posts: 48
  • Thank you received: 0
12 years 6 months ago #27033

Thank you, Nicolas.
It works now.

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

Time to create page: 0.050 seconds
Powered by Kunena Forum