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 #
- WooCommerce, active.
- Payment Methods by Product & Country for WooCommerce Pro (the Countries section is Pro only).
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 #
- Go to WPFactory > Payment Gateways per Products (also reachable at WooCommerce > Settings > Payment Gateways per Products) and open the Countries tab.
- Tick Enable/Disable > Enable section (
alg_wc_pgpp_countries_remove_enabled). - In Choose countries (
alg_wc_pgpp_countries_remove_countries), select the billing countries the rule applies to. - 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. - 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.
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. Get Payment Gateways per Products Pro.

