By : Intelligent-IT Published On Wednesday, April 19, 2017, 18:47 In WordPress
Convert any currency (to allowed PayPal currencies) for any kind of e-commerce system scenarios
//$objPayPal->addField('currency_code', $objCore->getConfig('currency_code'));
$targetcurrency = do_shortcode('[tc]');
$objPayPal->addField('currency_code', $targetcurrency ;//get the target currency
//$objPayPal->addField('amount', number_format(floatval($priceSummary['overall']['total_pay_now']), 2, '.', ''));
$Summary = $priceSummary['overall']['total_pay_now'] * do_shortcode('[exr]');//do the conversion
$objPayPal->addField('amount', number_format(floatval($Summary), 2, '.', ''));