Skip Navigation

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

Problem:
The client is experiencing issues with assigning specific currencies to their default payment gateway, and the settings indicate that this payment gateway is not supported. Additionally, configuring a specific country for this payment method in the gateway settings does not work.
Solution:
If you're experiencing issues with unsupported payment gateways in WPML, we recommend using custom code to manage their availability based on the selected currency. You can utilize the

woocommerce_payment_gateways

filter to add or remove gateways depending on the active currency. For guidance on implementing this, please refer to a related discussion in our forum: https://wpml.org/forums/topic/assign-payment-method-to-a-specific-currency/
Alternatively, if you are looking to use Stripe with multi-currency, installing the WooCommerce Gateway Stripe plugin might resolve the issue. You can find the plugin here: https://wordpress.org/plugins/woocommerce-gateway-stripe/
If these solutions do not apply to your case, or if they seem outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by bartoszH-3 1 month, 2 weeks ago.

Assisted by: Lauren.

Author Posts
March 4, 2025 at 9:14 pm #16775963

bartoszH-3

Background of the issue:
I am trying to assign specific currencies to my default payment gateway: hidden link.

Symptoms:
When I go to the settings page of the currency, it says that this payment gateway is not supported.

Questions:
Is there any way to solve the issue of the payment gateway not being supported for specific currencies?

Also, when I am trying to configure a specific country for this payment method in the payment gateway settings, this configuration does not seem to work.

March 4, 2025 at 9:24 pm #16776024

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

If the payment gateway is not supported, you can use custom code to try and make it work with WPML. Please see this related issue here and our suggestion at the top of the page in the yellow box: https://wpml.org/forums/topic/assign-payment-method-to-a-specific-currency/

March 5, 2025 at 3:33 pm #16779698

bartoszH-3

Hello, thanks for the answer. To address the issue with my local payment gateway for PLN currency, I have used the snippet provided in the suggested thread and it worked.

However, I am experiencing another issue now.

I would like to disable the official Woocommerce Payment Gateway - "WooPayment" for the PLN currency.

When I click on pencil next to PLN Currency and toggle on the "Payment methods" option, there is no possibility to turn it off for the WooPayments method - please see the screenshot attached.

Please, note that currently, the WooPayments method is running in the sandbox mode.

Screenshot_Woopayments_2.jpg
Screenshot_Woopayments.jpg
March 5, 2025 at 4:06 pm #16779777

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Just to clarify, you want WooPayments available for one currency, but not for the other. Is that correct? If you can share credentials to your site so i can login and check these settings, that would be helpful. The next reply is marked as private so that you can add the login in the private fields if possible.

March 5, 2025 at 7:05 pm #16780397

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

From what I can see, I don't think we currently support WooPayments as a gateway for multi currency. If you want to use Stripe, please try installing this plugin. https://wordpress.org/plugins/woocommerce-gateway-stripe/. This plugin should allow you to set it based on currency.

Alternately, if you want to use WooPayments, for unsupported payment gateways, you might consider using custom code to manage their availability based on the selected currency. This approach involves utilizing the woocommerce_payment_gateways filter to add or remove gateways depending on the active currency. It requires custom code which is outside the scope of WPML support, but you may be able to find some examples in the forum or even reach out to a recommended contractor if you need assistance writing custom code. https://wpml.org/contractors/

March 5, 2025 at 8:15 pm #16780522

bartoszH-3

ok, got it, I'll try to implement the same approach as I did for the other gateway, however, it's quite surprising that the WooPayments is not supported as it's official WooCommerce gateway, and as far as I know it's based on Stripe. It would be good to see this implemented in the future.

March 6, 2025 at 3:31 pm #16784425

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

I'm confident it will be compatible in the future, and if you would like to use Stripe in the meantime you can use the plugin https://wordpress.org/plugins/woocommerce-gateway-stripe/.

March 12, 2025 at 4:01 pm #16808252

bartoszH-3

Looking forward to see the solution that would work for any payment gateway.