Documentation
GeoBlock Pro
Payment Gateways

Payment Gateways

Payment gateway restrictions are a Pro feature. They hide specific payment methods at checkout for customers from certain countries.

Go to WooCommerce → GeoBlock → Payment Rules to restrict which payment methods are available based on the customer's country.


Setting Up a Payment Rule

Add a new rule

Click Add New Payment Rule.

Choose the address

Under Restrict by, choose Billing Address or Shipping Address.

Select the payment methods

Choose one or more payment methods. The list shows every payment gateway installed in WooCommerce (WooCommerce → Settings → Payments), including disabled ones, which are marked (disabled).

Choose the mode

Exclude selected countries hides the methods for the listed countries. Include selected countries offers the methods only to the listed countries.

Select countries and save

Pick the countries, then click Save Settings.

⚠️

Rules are saved by gateway ID (for example cod, bacs, ppcp-gateway). If you later uninstall a gateway, its ID stays selected in the rule until you remove it, and the rule simply has nothing to hide.


Which Country Is Used

Restrict byCountry used
Billing AddressThe billing country entered at checkout. If there is none, the shipping country, then the visitor's detected country
Shipping AddressThe shipping country entered at checkout. If there is none, the billing country, then the visitor's detected country

Rules are applied through WooCommerce's woocommerce_available_payment_gateways filter, so the list of payment methods updates as the customer changes their address at checkout.


Example Use Cases

  • Disable Cash on Delivery for countries where your couriers don't support it.
  • Offer Stripe only in the countries where your Stripe account can take payments.
  • Hide PayPal for high-risk regions to reduce fraud.

Testing Payment Rules

Use Test Checkout under WooCommerce → GeoBlock → Advanced → Rule Testing to check whether a payment method would be hidden for a given country - see Advanced Options.

⚠️

Reset to Defaults resets the settings only. Bulk rules, payment rules and per-product rules are kept.