|Page 1 of 1|
|Author:||marcin [ Thu Apr 27, 2017 4:57 pm ]|
|Post subject:||Paypal changes|
I use older version of a2b 1.9.4, I have bunch of my own mods in it, so I'm slow to upgrade.
In March 2017 paypal changed some inner workings of checkout and is no longer accepting comma in amount filed.
i.e. 1,000.00 is no longer accepted where correct string would be 1000.00.
The customers received AMOUNT_ERROR if the payment was 1000.00 or more.
What I did to fix it was modify a line from :
tep_draw_hidden_field('amount', number_format($order->info['total'], $currencyObject->get_decimal_places($my_currency))) .
tep_draw_hidden_field('amount', number_format($order->info['total'], $currencyObject->get_decimal_places($my_currency), '.', '')) .
Perhaps there is a better way, other then upgade
|Page 1 of 1||All times are UTC|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group