Quote from Calvinchw on June 25, 2020, 06:04
Hi,
I tried using WOOCS in 2 currency first, USD and CNY, and setting CNY is basic currency.
So if user switcher to USD, is that can pay in Paypal? it seems not available when check out that i tried.
And we setting the Paypal gate for CNY.
Attached the screen short for your reference.
Hi,
I tried using WOOCS in 2 currency first, USD and CNY, and setting CNY is basic currency.
So if user switcher to USD, is that can pay in Paypal? it seems not available when check out that i tried.
And we setting the Paypal gate for CNY.
Attached the screen short for your reference.
Hi,
I tried using WOOCS in 2 currency first, USD and CNY, and setting CNY is basic currency.
So if user switcher to USD, is that can pay in Paypal? it seems not available when check out that i tried.
And we setting the Paypal gate for CNY. Below information for reference.
Is there anyway to solve this problem?
Thanks.
Best regards,
Calvin Chen
//WooCommerce 中文网关支持 PayPal
//本函数解决的问题:贝宝不支持你的商铺货币。Gateway Disabled: PayPal does not support your store's currency.
add_filter( 'woocommerce_paypal_supported_currencies', 'enable_custom_currency' );
function enable_custom_currency($currency_array) {
$currency_array[] = 'CNY';
return $currency_array;
}
//WooCommerce 美元人民币转换,汇率可以自己定义
add_filter('woocommerce_paypal_args', 'convert_rmb_to_usd');
function convert_rmb_to_usd($paypal_args){
if ( $paypal_args['currency_code'] == 'CNY'){
$convert_rate = 6.265; //Set converting rate
$count = 1;
while( isset($paypal_args['amount_' . $count]) ){
$paypal_args['amount_' . $count] = round( $paypal_args['amount_' . $count] / $convert_rate, 2);
$count++;
}
}
return $paypal_args;
}
Hi,
I tried using WOOCS in 2 currency first, USD and CNY, and setting CNY is basic currency.
So if user switcher to USD, is that can pay in Paypal? it seems not available when check out that i tried.
And we setting the Paypal gate for CNY.
Attached the screen short for your reference.
Hi,
I tried using WOOCS in 2 currency first, USD and CNY, and setting CNY is basic currency.
So if user switcher to USD, is that can pay in Paypal? it seems not available when check out that i tried.
And we setting the Paypal gate for CNY.
Attached the screen short for your reference.
Hi,
I tried using WOOCS in 2 currency first, USD and CNY, and setting CNY is basic currency.
So if user switcher to USD, is that can pay in Paypal? it seems not available when check out that i tried.
And we setting the Paypal gate for CNY. Below information for reference.
Is there anyway to solve this problem?
Thanks.
Best regards,
Calvin Chen
//WooCommerce 中文网关支持 PayPal
//本函数解决的问题:贝宝不支持你的商铺货币。Gateway Disabled: PayPal does not support your store's currency.
add_filter( 'woocommerce_paypal_supported_currencies', 'enable_custom_currency' );
function enable_custom_currency($currency_array) {
$currency_array[] = 'CNY';
return $currency_array;
}
//WooCommerce 美元人民币转换,汇率可以自己定义
add_filter('woocommerce_paypal_args', 'convert_rmb_to_usd');
function convert_rmb_to_usd($paypal_args){
if ( $paypal_args['currency_code'] == 'CNY'){
$convert_rate = 6.265; //Set converting rate
$count = 1;
while( isset($paypal_args['amount_' . $count]) ){
$paypal_args['amount_' . $count] = round( $paypal_args['amount_' . $count] / $convert_rate, 2);
$count++;
}
}
return $paypal_args;
}