Jump to content
Sign in to follow this  
FabioGiardina

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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;
  $ot_discount->process();
  $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

Share this post


Link to post
Share on other sites

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.

 

Find:

 

$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']);

 

Sincerely,

The High Quality PHP Coding Team.

 

 

Hope this works for you

Edited by paccman

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×