---
title: Restrict Payment Gateways by Billing Country
description: Show certain WooCommerce payment gateways only to customers in specific billing countries. A Pro feature.
url: "https://wpfactory.com/docs/restricting-gateways-country/"
updated: "2026-09-27"
category: How to
tags:
  - "Payment Methods by Product & Country for WooCommerce"
---

# Restrict Payment Gateways by Billing Country

With [Payment Methods by Product & Country for WooCommerce](https://wpfactory.com/item/payment-gateways-per-product-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](https://wpfactory.com/item/payment-gateways-per-product-for-woocommerce/) Pro (the Countries section is Pro only).

[![Countries tab with country and gateway selectors](https://wpfactory.com/wp-content/uploads/article5-1-1024x469.png)](https://wpfactory.com/wp-content/uploads/article5-1.png)

### 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.

### Ready to set this up?

Country restrictions are a Pro feature of [Payment Gateways per Products](https://wpfactory.com/item/payment-gateways-per-product-for-woocommerce/). Upgrading also unlocks per-product rules and the fallback gateway. [Get Payment Gateways per Products Pro](https://wpfactory.com/item/payment-gateways-per-product-for-woocommerce/).

Related articles

- [Restrict Payment Methods by Country with Multiple Conditions](https://wpfactory.com/docs/woocommerce-payment-methods-by-country-multiple-conditions/)
- [Payment Methods by Product & Country: Reset a Settings Section](https://wpfactory.com/docs/payment-gateways-reset-a-settings-section/)
- [Assign Payment Gateways to Individual Products](https://wpfactory.com/docs/assigning-gateways-products/)
- [Assign Payment Gateways by Product Tag](https://wpfactory.com/docs/managing-gateways-tags/)
- [Assign Payment Gateways by Product Category](https://wpfactory.com/docs/gateways-product-categories/)

 

[![Payment Methods by Product & Country for WooCommerce](https://wpfactory.com/wp-content/uploads/Payment-Methods-by-Product-Country-for-WooCommerce.webp)](https://wpfactory.com/item/payment-gateways-per-product-for-woocommerce/)
