osCommerceCoders.com

Affordable end to end oscommerce solutions with
Search Engine Optimization

Email : osCommerceCoders@gmail.com
Call : +1 818-574-3596 (USA) / +44 (020) 8123-6463 (UK)

Discount Code currency error in paypal express on osc 2.3.1

Posted by admin On December - 29 - 2011

This is for stores using currencies which is not USD. then follow the steps below

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’]);

 

Then discount code works perfect for currencies like GBP, AUD etc which is not the default USD

Sponsors