Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Discount Code currency error in paypal express on osc 2.3.1


Recommended Posts

I've installed on a clean osc 2.3.1 the discount code for 2.3.1 (last version 3.1 + paypal support http://addons.oscommerce.com/info/7700).

When I try to pay using paypal express checkout, paypal ask me to pay in $ rather than in €.


For example I spend 10€ - 3€ discount = 7$ and not 7€!


I think the express checkout module modifies in http://addons.oscommerce.com/info/7700 loose by the way the currency settings.

Is there somebody that have this problem too?


May be it happens with all currencies that aren't dollar.


Thanks to all

Link to comment
Share on other sites

  • 1 month later...

I am getting the same problem, now even when I disable the discount code module, paypal still insists on charging US$... had to shut the website down until this is solved.

Link to comment
Share on other sites

the problome code is : catalog/ext/modules/payment/paypal/express.php

  // Discount Code - start
  include(DIR_WS_MODULES . 'order_total/ot_discount.php');
  $ot_discount = new ot_discount;
  $params = array();
  $params['AMT'] = $paypal_express->format_raw($order->info['total'], '', 1);
  // Discount Code - end

i neet a fix to so lets work on this ?

Edited by kzip
Link to comment
Share on other sites

  • 5 weeks later...

I had the same problem and emailed the developers. Got an answer from them and worked perfectly for me

below is the email I got in reply




Thank you for your interest in our product.


Please modify the catalog/ext/modules/payment/paypal/express.php file.




$params = array();

$params['AMT'] = $paypal_express->format_raw($order->info['total'], '', 1);


Replace with:


$params = array('CURRENCYCODE' => $order->info['currency']); $params['AMT'] = $paypal_express->format_raw($order->info['total']);



The High Quality PHP Coding Team.



Hope this works for you

Edited by paccman
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.

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...