WooCommerce – Disable Payment Gateways Based on Country

In this tutorial, we’ll show you how to disable payment gateways based on the country in WooCommerce.

Some reasons to restrict payment gateways based on the customer’s country:

  • Your products are not allowed in a specific country.
  • The payment gateway is not available in a country.
  • You want to reduce the risk of credit card fraud from a specific country.
  • Billing charges are too high for orders coming from a specific country

While other options may require you to know how to code to restrict payment gateways by country, here we’ll show you the easiest way to do it.



Using the WooCommerce Conditional Payment Gateways plugin.

This plugin allows you to restrict or allow payment methods in WooCommerce using several conditions.

For example, you can show a payment method by order total, disable a payment gateway for a specific product being purchased, disable a payment method for a specific country, etc.

After installing and activating the plugin, go to WooCommerce > Conditional Payment Gateways.

1- Create a new condition

Once you open the plugin, you’ll see the Enable conditions checkbox and the Add condition button.

Click on Add condition to create a new condition.

woocommerce disable payment gateways based on country

2- Disable payment gateways based on country

In this example, we will disable Stripe for these countries: Afghanistan, Argentina, Guyana.

Let’s select these values:

woocommerce disable payment gateways based on country
  • Enter the Condition title in the Add new condition field
  • What happens when the conditions are met: Disable the payment method(s)
  • Select the payment methods: Credit Card (Stripe)
  • Condition 1: Billing country = Afghanistan
  • Note. You choose which countries won’t be able to use the selected payment gateway.
  • Click Publish.

You don’t need to be a programmer to disable payment methods based on the country of the customer. You just need to set up some easy conditions on your WooCommerce payment gateways.