Payment rules
Payment rules change the list of payment methods a customer sees at checkout. Common uses are hiding Cash on Delivery for large orders, or showing only bank transfer to wholesale customers.
Create a payment rule
- Go to Checkout rules → Add a rule and pick Payment methods.
- Choose a template: Hide payment method, Show payment method, Reorder payment methods, Rename payment method or Cash on delivery fee.
- Enter a Rule name.
- Set your conditions under When should this rule run? (marker 1).
- In the Action section, pick the tab Hide, Show, Reorder or Rename. For Hide, also pick an option under Choose a type (marker 2).
- Under Choose payment methods, add the methods the rule applies to (marker 3).
- Pick a status in the Rule summary card, then click Save in the save bar.

Actions
| Action | What it does |
|---|---|
| Hide | Removes the chosen methods when the conditions match |
| Show | "Display only the chosen payment methods and hide everything else." |
| Reorder | Changes the order the methods appear in |
| Rename | Shows a different name, which you enter in New name |
When you pick Hide, Choose a type offers:
- Hide certain payment methods: hides only the methods you pick.
- Hide every payment method: "When this rule matches, customers won't be able to finish checkout." Use it with care.
Choose payment methods
For Hide with certain methods, first pick the group:
- Express checkout methods: buttons such as Shop Pay, PayPal or Apple Pay. Add them with Add a method.
- Standard payment methods: "Regular payment methods listed in the payment step."
Then choose how names match, is or Contains, and pick or type the method name. With Contains you can match part of a name, for example Cash to catch "Cash on Delivery (COD)".
For Show, Reorder and Rename, pick the exact method names.
The method field lists the payment methods in your store, so you can search and pick instead of typing. Matching ignores upper and lower case and extra spaces. The name still has to be the one customers see at checkout.
Useful conditions for payment rules
Besides cart, customer and address conditions, payment rules can use:
- Shipping method: for example, hide Cash on Delivery when the customer picks express shipping.
- Delivery type: Shipping, In-store pickup, Pickup point or Retail. For example, hide COD for in-store pickup.
Limits set by Shopify
- On stores that aren't on Shopify Plus: "Because of Shopify limits, credit card methods can't be changed for stores in the US and Canada."
- Only Shopify Plus stores can hide credit card payment methods.
- Payment method logos can't be renamed.
- Some gateways don't allow their payment methods to be renamed.
Pair COD shipping with COD payment
The Cash on delivery fee template doesn't add a fee by itself. The fee is the price of a COD shipping rate you create in Shopify. Blockly links that rate to your COD payment method.
How it works at checkout:
- When the customer picks a shipping rate whose name contains your keyword, Blockly hides every payment method except the linked COD method.
- When they pick any other rate, Blockly hides the COD method.
Set it up:
- In Shopify, create a shipping rate for COD, for example "Cash on Delivery", priced at your fee. The page links to 1. Set up the COD shipping method if you need help.
- In Shopify, set up a manual payment method for COD. Use Set up COD payment on the same page.
- In Blockly, pick Cash on delivery fee from the payment templates.
- Under 1. Shipping method keyword, click Add keyword and enter a word from the rate name, such as
COD. Matching ignores upper and lower case. - Under 2. Link to a payment method, choose Pre-defined and pick a method such as "Cash on Delivery (COD)", or choose Is equal to and type the name.
- Save.
COD rules have no conditions and ignore Test mode. A COD rule saved in Test mode applies to every customer. Test it on a development store, or set it up at a quiet time.
Examples
- Hide COD over $500: Condition Cart total, Greater than,
500. Action Hide, method is "Cash on Delivery (COD)". - Bank transfer only for wholesale: Condition Customer tag, Contains,
wholesale. Action Show, method "Bank Deposit". - No COD for pickup: Condition Delivery type, Is, In-store pickup. Action Hide, method "Cash on Delivery (COD)".
- Put PayPal first in Germany: Condition Shipping country, Is, Germany. Action Reorder.
Test before going live
Save the rule in Test mode and run a checkout with the email [email protected]. Only that checkout sees the change. See Checkout rule basics.
If a method still shows after you save, wait a few seconds and refresh the checkout. Then check that the rule is Active and the method name matches.