Lokally is launching on the Shopify App Store soon.

Shopify Payment Method Rules: Hide, Show, Rename

Control which payment methods appear at checkout based on the shopper's region. Reduce RTO, boost prepaid conversion, and optimise checkout UX - via Shopify Functions, no code.

See what Lokally fixes

What Are Shopify Payment Method Rules?

Payment method rules let you control which payment options appear at Shopify checkout based on the shopper's location. You can hide a method in some regions, show a method in a region where it is otherwise hidden, rename a method, or hide cash on delivery above an order value.

Shopify's native checkout settings apply payment methods globally - every shopper sees the same options. Payment method rules add location-aware logic so your checkout adapts to the shopper's geography.

Lokally implements these rules via Shopify Functions, which run server-side at checkout on Shopify's infrastructure. This is the only approach that genuinely controls the checkout - not just what's displayed on the storefront.

How Lokally solves this

Rule Types - Hide, Show, Rename, and an Order Value Limit

Hide: remove a payment method from checkout for shoppers in a region. Most commonly used to hide COD in high-RTO pincodes.

Show: show a payment method in a region even though a rule for all regions hides it.

Rename: change how a payment method is named at checkout, for example 'Cash on Delivery' to 'Pay on Delivery'.

Cash on delivery limit: hide paid-on-delivery methods above an order value, for all regions or per region.

Combine Multiple Rules

Several rules can be active at once. For example: hide COD in a region of high-RTO pincodes, rename COD to 'Pay on Delivery' for the rest of India, and hide COD above an order value for all regions.

Rules for a specific region take priority over rules for all regions, so you can make exceptions without rebuilding everything.

How to set it up

  1. Step 1

    Install Lokally

    Install Lokally from the Shopify App Store and choose a plan. New subscriptions start with a 7-day free trial, billed through Shopify.

  2. Step 2

    Create your regions

    In Lokally, go to Regions and add a region for each area. Paste its pincodes (one per line or comma-separated), or use ranges (400001-400099) and wildcards (40*) to cover a city or a whole state.

  3. Step 3

    Load your payment methods

    Go to Payment rules and click Reload payment methods to find the methods used in your recent orders, or add a method by name exactly as it appears at checkout.

  4. Step 4

    Add a rule

    On a payment method, click Add Rule: always hide it, rename it, or show it in a region where an all-regions rule hides it.

  5. Step 5

    Limit cash on delivery by order value

    Optionally, in the Cash on delivery limit card, hide paid-on-delivery methods above an order value, for all regions or per region.

  6. Step 6

    Save

    Rules apply at checkout straight away, based on the shopper's delivery pincode.

Frequently asked questions

What payment method rules does Lokally support?

Hide: remove a payment method for shoppers in a region. Show: show a method in a region even if a rule for all regions hides it. Rename: change the name shoppers see at checkout. You can also hide paid-on-delivery methods such as cash on delivery above an order value, for all regions or per region.

Can I hide COD for specific pincodes only?

Yes. Create a region with those pincodes (you can paste a long list, or use ranges and wildcards) and hide Cash on Delivery in that region. It stays available everywhere else.

Can I rename 'Cash on Delivery' to 'Pay on Delivery'?

Yes. The rename rule changes the display name shown at checkout for shoppers matching the location. You can rename any payment method for any location combination.

Does this work with all Shopify payment gateways?

Yes. Lokally's payment method rules work via Shopify Functions, which applies to all payment methods available in your checkout regardless of the gateway (Razorpay, PayU, Cashfree, Shopify Payments, etc.).

Can I show a payment method only in certain regions?

Yes. The show rule hides a payment method by default and shows it only for shoppers in specified locations. Useful for regional payment methods that are not relevant globally.

Can I combine multiple payment rules?

Yes. Several rules can be active at once. For example: hide COD in a region of high-RTO pincodes, rename COD to 'Pay on Delivery' everywhere else, and hide COD above an order value for all regions.

Start Optimising Your Checkout Payment Options

7-day free trial at launch. Billed through Shopify, cancel anytime.