Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Discount Code currency error in paypal express on osc 2.3.1

discount code paypal eur oscommerce 2.3.1 curreency error

  • You cannot reply to this topic
3 replies to this topic

#1 FabioGiardina

  • Community Member
  • 1 posts

Posted 18 October 2011, 08:30

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

#2 paccman

  • Community Member
  • 6 posts
  • Real Name:emile

Posted 24 November 2011, 22:45

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.

#3 kzip

  • Community Member
  • 11 posts
  • Real Name:kevin

Posted 30 November 2011, 14:06

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, 30 November 2011, 14:08.


#4 paccman

  • Community Member
  • 6 posts
  • Real Name:emile

Posted 29 December 2011, 19:29

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, 29 December 2011, 19:30.