Force Currency for Specific Payment Methods
Last updated
Last updated
Force currency for specific payment method options ensures that certain payment methods in an eCommerce store (like WooCommerce) only accept payments in a specified currency. This function can be useful when specific payment gateways only support particular currencies or when you want to guide users to pay in a specific currency for certain payment methods.
Each payment method in the store is associated with a specific currency. For example, if you're using PayPal, you can force payments to be made only in USD, while Stripe may handle payments in EUR.
After installing and activating the YayCurrency plugin, go to YayCommerce > YayCurrency in your WordPress dashboard.
First of all, ensure that you have already selected your desired currencies in the Manage Currency tab.
When you’ve done that, move to the Checkout Options tab to configure the settings. To enable this function, simply switch the toggle button next to it.
Here, you can see a list of payment methods available in your store.
For each payment method, select the desired currency from the dropdown input field. By doing this, you can force a specific currency for each payment method without needing any coding.
Let's see how it works.
When selecting 'Direct Bank Transfer,' the payment currency should be US dollars (USD).
For 'Check Payments' or 'Cash on Delivery,' the payment currency should be euros (EUR).
Checkout page using blocks:
Checkout page using shortcodes:
IMPORTANT: The force currency for specific payment method option function is only supported in the PRO version of YayCurrency. Before proceeding with these steps, make sure you have the PRO version of the plugin. If you are using the FREE version, please upgrade to YayCurrency PRO to enable this feature.