Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Wrong amounts passed to Barclaycard ePDQ


Guest

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...