This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This thread is resolved. Here is a description of the problem and solution.

Problem:
paypal disappears when i change currency from USD to any of these currencies (AED,SAR,BHD,QAR,OMR,KWD)

Solution:
When the payment gateway is Paypal and if the currency is not supported, the gateway will deactivate/hide the paypal during the checkout. So it is related to payapl/gateway it self.

Anyhow, our developer recommend you to use the below code as a workaround.

Add the piece of code to your theme (child theme) functions.php file

add_filter('woocommerce_paypal_supported_currencies', 'add_sar_currency');
function add_sar_currency ($array) {
    array_push($array, 'SAR', 'AED', 'BHD', 'QAR', 'OMR', 'KWD');
    return $array;
}

**
Please make sure you have correctly configured the Multi currency payment gateway to convert the currencies in PayPal accepted list of currencies.

**
change the list of currency code to the code of currencies you are using.

This topic contains 2 replies, has 2 voices.

Last updated by alwaleedA-3 3 months, 1 week ago.

Assigned support staff: Riffaz.

Author Posts
July 8, 2019 at 10:27 am #4161237

alwaleedA-3

I am trying to: sell in multi currency with paypal by changing the currency to USD before check out

Link to a page where the issue can be seen: Site under development

I expected to see: paypal as payment method with any of this currencies (AED,SAR,BHD,QAR,OMR,KWD)

Instead, I got: paypal disappears when i change currency from USD to any of these currencies (AED,SAR,BHD,QAR,OMR,KWD)
i am using PayPal Standard
and i turned on Payment Gateways Custom settings for all the currencies (AED,SAR,BHD,QAR,OMR,KWD) and paypal Currency USD

USD IMAGE USD.png
KWD IMAGE KWD.png

(Please note that the payment will be made in USD. $44.00 will be debited from your account.) this is show only in Direct bank transfer

July 8, 2019 at 12:51 pm #4162491

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

Thank you for contacting WPML support.

When the payment gateway is Paypal and if the currency is not supported, the gateway will deactivate/hide the paypal during the checkout. So it is related to payapl/gateway it self.

Anyhow, our developer recommend you to use the below code as a workaround.

Add the piece of code to your theme (child theme) functions.php file

add_filter('woocommerce_paypal_supported_currencies', 'add_sar_currency');
function add_sar_currency ($array) {
    array_push($array, 'SAR', 'AED', 'BHD', 'QAR', 'OMR', 'KWD');
    return $array;
}

Please make sure you have correctly configured the Multi currency payment gateway to convert the currencies in PayPal accepted list of currencies.

I hope this helps you better, Please let me know the results

Kind Regards,
Riffaz.

July 8, 2019 at 5:12 pm #4164715

alwaleedA-3

My issue is resolved now. Thank you!