Guest Posted May 7, 2008 Share Posted May 7, 2008 I have successfully got this Barclaycard ePDQ Payment Module v1.08 to work with GBP transactions, and now my client wants to accept EUR and USD as well which is fine, however even though the correct amount is shown at checkout in whatever currency, for EUR and USD it shows completely different amounts at the Barclaycard screen to what was on the osC checkout screen! Any ideas? GBP is always correct at the Barclaycard end, so somehow osC/the ePDQ payment module is sending the wrong amount over for EUR and USD! Sam Quote Link to comment Share on other sites More sharing options...
Guest Posted May 8, 2008 Share Posted May 8, 2008 Hi look at this http://addons.oscommerce.com/info/4357 the developer offers help and install Quote Link to comment Share on other sites More sharing options...
Guest Posted May 8, 2008 Share Posted May 8, 2008 That is the module I am using. I am in contact with the developer (via email) as well but just wondered if anyone else had any experience of this problem. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 8, 2008 Share Posted May 8, 2008 I did some further investigation, and basically the 'incorrect' EUR and USD amounts passed to ePDQ is actually the correct value for GBP! Examples of the same transaction in different currencies: GBP Transaction £11.14 - correct cart amount £11.14 - amount passed to ePDQ USD Transaction $21.76 - correct cart amount $11.14 - amount passed to ePDQ EUR Transaction €14.16 - correct cart amount €11.14 - amount passed to ePDQ Quote Link to comment Share on other sites More sharing options...
Guest Posted May 8, 2008 Share Posted May 8, 2008 Problem sorted (cheers Steve!). In case anyone else has this problem, this is how to sort it out: In catalog/includes/modules/payment/ePDQ.php go to line 382: $postparams["total"] = number_format($order->info['total'], $epdq_decimals, '.', ''); change that line to: $postparams["total"] = number_format(($order->info['currency_value'] * $order->info['total']), $epdq_decimals, '.', ''); I am using osCommerce 2.2 RC2a by the way. Hope this helps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.