Checkout8 min read

Shopify: Hide a Payment Method for Specific Products

Hide PayPal, Cash on Delivery or bank transfer when the cart holds certain products, collections, tags, vendors or SKUs. What Shopify allows and how to set it up.

In this guide
  1. Why a payment method should depend on the product
  2. What Shopify allows without an app
  3. Pick the product condition that will stay true
  4. Set up the rule step by step
  5. Combine products with other conditions
  6. Mistakes that break product rules
  7. Where Checkora: Hide Payment Methods fits
  8. FAQ

To hide a payment method for specific products in Shopify, you need a payment customization: a Shopify Function from an app that checks the cart at checkout and hides the method when a matching product is in it. Shopify’s payment settings have no product field, so PayPal, Cash on Delivery or bank transfer is either on for every cart or off for every cart. With a payment customization you can say “hide Cash on Delivery when the cart holds anything from the Made to order collection” or “hide PayPal for products tagged no-paypal”, and it works on every Shopify plan, with one exception for card payments in the US and Canada covered below.

This guide explains why shops need product-based payment rules, what Shopify offers natively, how to pick the right product condition, and how to set the rule up and test it.

Why a payment method should depend on the product

Payment methods are store-wide in Shopify. You activate them in Settings > Payments, and every method you activate shows at checkout for any cart it supports (Shopify Help Center: Manual payment methods). That is fine until one product does not fit one method:

  • Made-to-order or personalised items. Engraved jewellery, custom prints or furniture built for one buyer cannot be resold when a Cash on Delivery parcel is refused. Most shops want payment up front for these.
  • High-value products. A watch or a laptop paid at the door means a lot of cash for the courier and a big loss if the parcel comes back.
  • Products a provider does not want. Some payment providers restrict categories in their terms. If one of your products is on such a list, the method should not be offered for carts that contain it.
  • Pre-orders and digital goods. A bank transfer that takes days to clear may not suit a download that is delivered at once, and Cash on Delivery makes no sense for a product that is never shipped.
  • Wholesale packs. Case packs for trade buyers may be meant for bank transfer only, while the retail range keeps every method.

In each case the rule is the same shape: when the cart contains these products, hide that payment method.

What Shopify allows without an app

Shopify has no setting that ties a payment method to a product. The route Shopify offers is payment customizations. Apps add a Shopify Function that can hide, rename or reorder payment methods at checkout, and you manage them under Settings > Payments > Payment customizations (Shopify Help Center: Checkout customization). Things to know before you rely on one:

  • Plan. Payment customizations need at least the Basic plan. They work below Plus, but in the United States and Canada stores below Plus can customize non-credit-card methods only. PayPal, Cash on Delivery and bank transfer are not card methods; the card option itself stays as it is unless the store is on Plus.
  • Express buttons. Shopify’s Help Center says only Plus stores can hide accelerated checkout options such as wallet buttons, and only through a custom app. A product rule from a public app works on the payment methods in the checkout’s payment list; plan for the express buttons to stay.
  • Shopify’s own app. Shopify’s Checkout Blocks app has payment method customizations with product conditions, but creating one with Checkout Blocks is available only on Shopify Plus (Shopify Help Center: Checkout Blocks payment method customizations).
  • Limit per store. A store can have up to 25 active payment customization functions, shared by every app (shopify.dev: Payment Customization Function API).
  • Where it runs. Payment customizations run in checkout, including checkouts from draft order invoices. They do not run on POS.

Pick the product condition that will stay true

A product rule is only as good as the way it finds the products. Choose the condition that will still be right after you add new products next month.

Condition Good for Watch out for
Product tag A hand-picked list that changes often, such as no-cod Someone must tag each new product
Collection A group you already maintain, such as Made to order Automated collections change as product data changes
Product type A whole category, such as Gift card or Furniture Types are typed by hand; check the spelling
Vendor Everything from one supplier or brand Vendor names are typed by hand too
SKU A few exact items, or a SKU prefix Only works when SKUs follow a pattern

A dedicated tag such as no-cod or prepay-only is usually the clearest: the tag says what it does, and anyone who edits the product sees it. A collection fits when the group already exists for the storefront.

Then decide how the cart should match:

  • Any item has one of the values: one engraved ring in a cart of ten items is enough to hide Cash on Delivery. This is the usual choice.
  • Every item has one of the values: hide the method only when the whole cart is, say, digital.
  • No item has any of the values: the reverse, for example hide a trade-only payment method when the cart holds no trade pack.

Set up the rule step by step

The steps below use Checkora: Hide Payment Methods; any app that provides a payment customization follows a similar path.

  1. Tag or group the products. Add a tag such as no-cod to every product that should not be paid by Cash on Delivery, or make sure they are in one collection.
  2. Find the exact payment method name. Rules match the name the buyer sees at checkout, such as Cash on Delivery (COD) or PayPal. Copy it from Settings > Payments, or match a word it contains, such as Delivery.
  3. Create the rule. In the app, open Rules and click Add rule, and give it a name only you see, such as “No COD for made-to-order”.
  4. Add the product condition. Click Add condition, choose Product tag (or Collection, Product type, Vendor or SKU), set Match to Any item has one of and enter the tag.
  5. Choose the action. Under Action, pick Hide payment methods. Under Which payment methods, choose Name contains and enter Cash on Delivery.
  6. Test it in the simulator. Try a cart with the tagged product and one without. The method should show Hidden only for the first.
  7. Switch it on and turn on the function. Turn on Switched on, save, and on Rules check that the Payment methods card shows On.

To hide PayPal for a few products instead, use the same rule with Name contains PayPal. To hide two methods for the same products, one rule with a name that matches both is often enough, or add a second rule.

Combine products with other conditions

Products are rarely the only reason. You can add more conditions to the same rule and choose All conditions match or Any condition matches:

Mistakes that break product rules

  • The name does not match. The rule compares its text with the name shown at checkout. Providers can show a method under another name in another language, so test each checkout language.
  • New products without the tag. If the rule uses a tag, add tagging to your product checklist, or use a collection with automated conditions instead.
  • “Every item” when you meant “any item”. With Every item has one of, a mixed cart with one engraved ring and one plain ring still shows Cash on Delivery.
  • Too many tags or collections. Shopify limits what a function can read: up to 100 product tags and 100 collections across your rules. Group products into one collection or one tag rather than listing hundreds.
  • Very large carts. Shopify gives functions a processing budget per checkout. In very large carts the rules may not run and checkout shows every method. The app’s Rules page shows how many different items a cart can hold with your rules.

Where Checkora: Hide Payment Methods fits

Checkora: Hide Payment Methods hides, renames or moves payment methods at checkout with rules that run as a Shopify Function, with no theme changes.

  • Product conditions. Product tag, Collection, Product type, Vendor and SKU, with Any item has one of, Every item has one of or No item has any of. A SKU ending in * matches every SKU that starts with it.
  • More conditions in the same rule. Cart subtotal and item quantity, delivery country, region, postcode and delivery method, customer tag, login and B2B, and the customer’s order history.
  • Hide or show only. Hide the methods you name, or keep only the methods you name and hide the rest.
  • Simulator. Try a cart, an address and a customer and see which methods the buyer gets before the rule goes live.

What it does not do: it cannot add a payment method, charge a fee or change a price, and it does not hide the express checkout buttons. In the US and Canada below Plus, it leaves the credit card option as it is. Step-by-step help: create a payment rule and test rules in the simulator. See the app’s page for plans and the full feature list.

FAQ

Can Shopify hide a payment method for one product without an app? No. Payment methods are store-wide in Shopify’s settings. Hiding one for certain products needs a payment customization from an app, or Checkout Blocks on Shopify Plus.

Can I hide PayPal for specific products? Yes, with a payment customization that matches the method name PayPal and a product condition such as a tag or collection. In the US and Canada this works below Plus because PayPal is not a credit card method.

Does the rule hide Shop Pay or Apple Pay buttons? No. Shopify lets only Plus stores hide accelerated checkout options, through a custom app. The rule works on the payment methods listed in checkout.

Do I need Shopify Plus? No. Payment customizations from public apps work on every plan from Basic up. Below Plus, US and Canadian stores can customize non-credit-card methods only.

What happens when a cart has one restricted product and several normal ones? With Any item has one of, one matching product is enough to hide the method for the whole checkout.