moneybookers Worng amount
15 years 1 month ago #23801
by Razavi
moneybookers Worng amount was created by Razavi
Hi,
We are experiencing some problems with the Moneybookers module.
When order is completed and we are redirected to the payment site the price is changed.
ex
total Price 5.270,00 DKK
But Only payment page is only showing 527 DKK
This only happen for some products not all...
I have a link where the problem occurs:
computergrej.dk/index.php/baerbar/produc.../category_pathway-78
We are experiencing some problems with the Moneybookers module.
When order is completed and we are redirected to the payment site the price is changed.
ex
total Price 5.270,00 DKK
But Only payment page is only showing 527 DKK
This only happen for some products not all...
I have a link where the problem occurs:
computergrej.dk/index.php/baerbar/produc.../category_pathway-78
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23802
by nicolas
Replied by nicolas on topic Re: moneybookers Worng amount
Hi,
There is indeed a problem with zeros before the comma in prices for moneybookers.
Could you change the code:
to:
in the file plugins/hikashoppayment/moneybookers.php and try again ?
That should solve the problem.
There is indeed a problem with zeros before the comma in prices for moneybookers.
Could you change the code:
Code:
$vars = Array(
"currency" => $currency->currency_code,
"amount" => trim(trim(round($order->cart->full_total->prices[0]->price_value_with_tax,(int)$currency->currency_locale['int_frac_digits']), '0'), '.'),
);
to:
Code:
$price = round($order->cart->full_total->prices[0]->price_value_with_tax,(int)$currency->currency_locale['int_frac_digits']);
if(strpos($price,'.')){
$price =rtrim(rtrim($price, '0'), '.');
}
$vars = Array(
"currency" => $currency->currency_code,
"amount" => $price,
);
That should solve the problem.
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23833
by Razavi
Replied by Razavi on topic Re: moneybookers Worng amount
Thanks...
That did the job....
That did the job....
Please Log in or Create an account to join the conversation.
Time to create page: 0.254 seconds