moneybookers Worng amount

  • Posts: 41
  • Thank you received: 0
13 years 3 months ago #23801

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

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 3 months ago #23802

Hi,

There is indeed a problem with zeros before the comma in prices for moneybookers.
Could you change the 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:
$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,
		);
in the file plugins/hikashoppayment/moneybookers.php and try again ?
That should solve the problem.

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

  • Posts: 41
  • Thank you received: 0
13 years 3 months ago #23833

Thanks...

That did the job....

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

Time to create page: 0.057 seconds
Powered by Kunena Forum