Help CenterContact support
All Checkora: Hide Payment Methods articles

How do I hide a payment method by country, region or postcode?

Updated

On this page
  1. Before you start
  2. Steps
  3. How postcodes are written
  4. Verify it worked
  5. Troubleshooting

Show or hide a payment method by the buyer’s delivery address: country, region or province, or postcode lists, prefixes and ranges.

Before you start

  • Address conditions are part of every plan, Free included.
  • To keep a local Cash on Delivery method in its own country, you can also start from a preset under Local Cash on Delivery by market. See “How do I use the Cash on Delivery presets?”.

Steps

  1. In the app, open Rules and click Add rule.
  2. Under Rule, enter a Name. Only you see this name.
  3. Under Conditions, click Add condition and pick one Condition type:
    • Country: under Match, choose is one of or is not one of. Enter two-letter codes under Country codes, for example DE, AT, FR.
    • Region or province: under Match, choose is one of or is not one of. Enter the country and region code joined by a hyphen under Region codes, for example ES-GC or IT-SO.
    • Postcode: under Match, choose is one of or is not one of. Enter a Country code and its Postcodes. Click Add country to add postcodes for another country.
  4. Separate values with commas or new lines. Letter case doesn’t matter.
  5. Under Action, set What should happen to Hide payment methods.
  6. Under Which payment methods, set Name match to Name contains or Name is exactly, and enter the Name text, for example Cash on Delivery.
  7. Turn on Switched on and click Save.
  8. On Rules, make sure the Payment methods card shows On. If it shows Off, click Turn on.

For example, to offer Cash on Delivery only in Italy: Country, is not one of, IT, and hide Cash on Delivery.

How postcodes are written

  • Exact postcode: 27498. Spaces, hyphens and dots are ignored, so 27 498 is the same postcode.
  • Prefix: end with *. 35* covers every postcode that starts with 35.
  • Range: two codes of the same length, for example 57030-57039 or 9500-000-9599-999.
  • Whole country: *.
  • UK-style postcodes compare districts: E1* covers E1 and E1W, not E10.

With is not one of, a delivery to a country you did not list counts as not in the list, so the rule applies.

Verify it worked

  1. While you edit, the Summary box shows the condition and “Hide …”.
  2. Open Simulator. Under Delivery, enter a Country code, a Region code or a Postcode.
  3. Under Before your rules, the payment method shows the badge Hidden, and it is missing under What the buyer sees. Try an address outside your list to see it come back.

Troubleshooting

The payment method shows before the buyer enters an address. Address conditions are false until the buyer enters an address, for both is one of and is not one of. Nothing is hidden for an unknown destination. In the Simulator, leave the country empty to test this case.

You see ““…” is not a two-letter country code, for example DE.” Use the two-letter code, not the country name or a three-letter code.

You see ““…” is not a region code. Use the country and region code, for example ES-GC.” Add the country code and a hyphen before the region code.

You see ““…” is not a postcode, prefix (35) or range (57030-57039).”* Fix the postcode. Both sides of a range must have the same length.

You see “Add postcodes for …, or * for the whole country.” A country under Postcode has no postcodes. Add them, or enter *.

You see “Add at least one country.” The Postcode condition has no country. Enter a Country code and its Postcodes.

Built and supported by StoreFleet, Shopify app developers since 2021.