PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

WOOCS CNY switcher USD Paypal

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

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;
}

Hello

You should pay in the currency supported by the payment system. My plugin cannot change this