---
title: Restrict Payment Methods by Country with Multiple Conditions
description: Tie WooCommerce payment gateways to billing countries and stack several country rules at once. Pro.
url: "https://wpfactory.com/docs/woocommerce-payment-methods-by-country-multiple-conditions/"
updated: "2026-09-27"
category: Pro Features
---

# Restrict Payment Methods by Country with Multiple Conditions

To restrict payment methods by country in [Payment Methods by Product & Country for WooCommerce](https://wpfactory.com/item/payment-gateways-per-product-for-woocommerce/) Pro, go to WPFactory > Payment Gateways per Products > Countries, tick Enable section, choose the billing countries and the gateways reserved for them, and save. For more rules, raise Number of payment by country restrictions to add more country and gateway pairs.

### Before you start

- [Payment Methods by Product & Country for WooCommerce](https://wpfactory.com/item/payment-gateways-per-product-for-woocommerce/) Pro.
- The **Countries** section enabled (`alg_wc_pgpp_countries_remove_enabled`).

### How a country condition works

Each condition pairs a set of countries with a set of gateways. In the chosen countries, only those gateways are shown, and those gateways are removed from all other countries. The rule reacts to the billing country the customer enters at checkout.

### Set up a single condition

1. Go to **WPFactory > Payment Gateways per Products > Countries**.
2. Tick **Enable section**.
3. In **Choose countries**, select the billing countries for this rule.
4. In **Choose gateways to appear only on selected countries above**, select the gateways to reserve for those countries.
5. Click **Save changes**.

### Add more conditions

Set **Number of payment by country restrictions** (`alg_wc_pgpp_countries_restriction_number`, default 1) to the number of separate country rules you need. Each additional block gives you another **Choose countries** plus **Choose gateways** pair, so you can, for example, reserve one wallet for Germany and a different local method for Brazil in the same store.

### Combine with your product rules

By default a matching country condition replaces your other rules for that country. Tick **Combine conditions from other sections** (`alg_wc_pgpp_countries_combine_condition`, default No) to have the country rules work *together* with your Category, Tag and Product rules instead of overriding them.

### Options

| 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 restrictions | `alg_wc_pgpp_countries_restriction_number` | 1 |
| Choose countries (per block) | `alg_wc_pgpp_countries_remove_countries` | (none) |
| Choose gateways (per block) | `alg_wc_pgpp_countries_remove_include_gateway` | (none) |

For the second and later blocks, the country and gateway option ids carry a numeric suffix, for example `alg_wc_pgpp_countries_remove_countries_2`.

### Ready to set this up?

Country rules are a Pro feature of [Payment Gateways per Products](https://wpfactory.com/item/payment-gateways-per-product-for-woocommerce/). [Get Payment Gateways per Products Pro](https://wpfactory.com/item/payment-gateways-per-product-for-woocommerce/).

Related articles

- [Payment Methods by Product & Country: Reset a Settings Section](https://wpfactory.com/docs/payment-gateways-reset-a-settings-section/)
- [Payment Methods by Product & Country: Developer Hooks and Filters Reference](https://wpfactory.com/docs/payment-gateways-developer-hooks-filters/)
- [Payment Methods by Product & Country: Additional Tips](https://wpfactory.com/docs/payment-gateways-per-product-additional-tips/)
- [Payment Methods by Product & Country: Advanced Troubleshooting](https://wpfactory.com/docs/advanced-troubleshooting/)
- [Restrict Payment Gateways by Billing Country](https://wpfactory.com/docs/restricting-gateways-country/)
