Black Friday All Access $999 $399 lifetime or 30% off any plugin with Ends in -- See deals
View Categories

Restrict Payment Gateways by Billing Country

With Payment Methods by Product & Country for WooCommerce Pro you can make certain payment gateways appear only for customers in specific billing countries. This is a Pro feature, configured in the Countries tab.

Before you start #

Countries tab with country and gateway selectors

How the country rule works #

By default every gateway appears in every country. In the Countries tab you build a rule that ties a set of gateways to a set of countries: the chosen gateways appear only in the chosen countries, and they are removed from all other countries. Everything you do not name is left untouched.

Set it up #

  1. Go to WPFactory > Payment Gateways per Products (also reachable at WooCommerce > Settings > Payment Gateways per Products) and open the Countries tab.
  2. Tick Enable/Disable > Enable section (alg_wc_pgpp_countries_remove_enabled).
  3. In Choose countries (alg_wc_pgpp_countries_remove_countries), select the billing countries the rule applies to.
  4. In Choose gateways to appear only on selected countries above (alg_wc_pgpp_countries_remove_include_gateway), select the gateways that should be exclusive to those countries.
  5. Click Save changes.

Both fields are select boxes: click and pick from the list. The rule reacts to the billing country the customer enters at checkout.

Options in this tab #

Setting Option ID Default
Enable section alg_wc_pgpp_countries_remove_enabled No
Combine conditions from other sections alg_wc_pgpp_countries_combine_condition No
Number of payment by country restrictions alg_wc_pgpp_countries_restriction_number 1
  • Combine conditions from other sections: when on, country rules are combined with your Category, Tag and Product rules rather than replacing them.
  • Number of payment by country restrictions: raise this to add more independent country/gateway blocks, so you can define several country rules at once.

Example #

  • Offer a local wallet gateway only to customers in Germany: choose Germany and that gateway. It then appears in Germany and is hidden everywhere else.
wpf Payment Methods by Product Country for WooCommerce Icon

Payment Gateways per Products

Ready to set this up?

Country restrictions are a Pro feature of Payment Gateways per Products. Upgrading also unlocks per-product rules and the fallback gateway.