Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Dec 13, 2017 5:22 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Paypal changes
PostPosted: Thu Apr 27, 2017 4:57 pm 
Offline

Joined: Tue Jul 20, 2010 3:42 pm
Posts: 26
Location: Schaumburg , IL
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))) .

to :

tep_draw_hidden_field('amount', number_format($order->info['total'], $currencyObject->get_decimal_places($my_currency), '.', '')) .

in customer/lib/epayment/methods/paypal.php

Perhaps there is a better way, other then upgade :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group