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, '.', ''));
Published:
Jan 07, 2025 12:26 PM
Version:
Lastest
Category: