Disable payment method for specific products

1 0 0



I'm using the official Digital Downloads app from Shopify to create digital assets I'm selling in my store. My main product range contains mostly physical products and only some digital ones.

I would like to disable a payment method if some specific product(s) are in the cart, because it makes no sense to buy a digital product with the Cash on delivery option. Unfortunately, there are such cases, and it makes me additional amount of work to handle these kind of customers.

Is there any way to handle this?



Replies 3 (3)

4 1 2

I would also like to know this as customers think they can use the shop pay installments with my pre-order items and shopify won't accept the payment which is fine, but it would be nice to remove it from that specific page and the checkout. If shopify doesn't accept shop pay for pre-orders, then shopify should give us the opportunity to either hide it, or remove the function so my customers aren't confused.

18 1 2

Hello @spiritful ,


You can achieve it with the Kip: Customize Payment Methods app, which lets you hide payment methods based on conditions, and in your case you can configure it to hide Cash on delivery when your digital products are in the cart.


Here is a step by step on how to achieve this:


After installing the app, click the "Create hide rule" option:



Then in the payment methods to hide, select Cash on Delivery (COD):



In the condition section, select the "Cart item SKUs" condition, then you can enter the product SKUs in which you want the Cash on delivery to be disabled. In your case these should be the digital products:

Screenshot 2023-12-18 at 10.57.27.png


This will result in the Cash on Delivery method only being available in your physical products.


I hope you found this helpful!

40 0 1

Hello @spiritful , for your specific need to disable payment methods like Cash on Delivery when digital products are in the cart, I recommend trying the KlinKode PayRules app. It's designed precisely for this purpose, allowing you to hide any payment methods based on specific products in the cart. Check it out here: https://apps.shopify.com/klinkode-payrules

To get started easily, watch the video tutorial on how to use the app:


- Control payment methods visibility at checkout by KlinKode PayRules app.
- You can join in our Facebook group for Shopify help.