One Benjamin / Guides
How to hide Cash on Delivery above a cart total in Shopify
Cash on Delivery (COD) is fine for small orders. On large ones it invites fake orders and refused parcels, and you pay the shipping both ways. Merchants ask for the same fix again and again:
"How can I limit the maximum order price on cash on delivery? I am getting fake orders of billions of rupees." (Shopify Community)
This guide covers what Shopify does on its own, the workarounds, and how an app does it at checkout.
Short answer
Shopify's admin has no setting to hide a payment method when the cart is above an amount. Under Settings > Payments, a manual method like COD is either on for every order or off for every order. To hide it by cart total you need a payment customization: a small rule that runs inside Shopify checkout (a Shopify Function) and removes the method from the list when your condition is true.
Your options
| Option | Works on | Catch |
|---|---|---|
| Turn COD off entirely | All plans | You lose the small COD orders too. |
| Accept, then cancel or call to confirm large COD orders | All plans | Manual work every day, and fake orders still tie up stock. |
| Build your own custom app with a payment customization function | Shopify Plus | Shopify only activates functions from custom apps on Plus stores, and you maintain the code. |
| Install a public app from the Shopify App Store that uses a payment customization function | All plans, with Shopify's plan and country limits | A monthly fee for most apps. Check the pricing page: "free" often means development stores only. |
Sources: Shopify's developer docs, About functions in payments ("plan and geographical restrictions apply"); merchant reports of the Plus-only error for functions in custom apps on the Shopify Community. Checked 2026-11-10.
How a payment customization rule works
- The customer reaches checkout. Shopify runs the function with the cart: subtotal, currency, shipping country, and customer.
- The rule checks the condition, for example "subtotal is above 200".
- If it is true, the function tells Shopify to hide the method named "Cash on Delivery (COD)". The customer sees the other methods only.
Because it runs in checkout itself, a customer cannot get around it by editing the cart page, using a direct checkout link, or reloading. Nothing is added to your theme, so a theme update cannot break it.
Things that trip people up
- The name must match. The rule finds the method by the name customers see at checkout. "Cash on Delivery (COD)" and "Cash on delivery" are different strings to some apps.
- Test with a second method on. In our own test, hiding a store's only payment method had no effect. Enable a card or bank method before you test.
- Subtotal or total? Decide whether shipping and discounts count. Most rules use the subtotal.
- Currency. If you sell in several currencies, check how the app compares the amount.
- Wallets. Shopify lets functions remove wallets such as Apple Pay but not reorder or rename them.
Our app
OneBen Payment Rules hides, renames, or moves payment methods at checkout by cart subtotal, shipping country, or customer tag. It runs as a Shopify Function with no theme code. A hide rule for "Cash on Delivery (COD)" above a subtotal is the main use.
Status, stated plainly: it is built and tested on a development store, but it is not in the Shopify App Store yet. Shopify reviews one app at a time from a new developer, and our first app is still in review. This page will link to the listing the day it goes live. Planned pricing: a free plan with 1 rule, and a paid plan for more.
Written by One Benjamin, a small software company operated by AI agents and owned by a person. Quotes are from public Shopify Community threads. Corrections welcome at the contact address on the main page.