How to Set Discounts for Card Payments Only on Shopify 💳

Jan Nemec
Jan Nemec
Prepaid order discounts and hide COD on Shopify

If you're running a Shopify store in markets where Cash on Delivery (COD) is popular—like India, the Middle East, Europe, or Latin America—you already know the challenge: COD orders have higher return rates, create cash flow issues, and increase operational costs. The solution? Incentivize customers to choose prepaid payment methods instead.

Shopify doesn't natively offer the ability to limit discounts based on payment methods. This guide shows you how to create prepaid-only discounts and hide COD when discount codes are applied using Payflow, which adds the conditional logic Shopify is missing—without complicated coding or post-purchase order editing.

How to Set Up Prepaid Discounts with Payflow

The core principle is simple: create a discount code, then use Payflow to hide COD when that discount is applied.

Quick Setup Option: Download our ready-made Payflow template, import it into your store, adjust the discount percentage range if needed, and set the status to active. Done!

Step-by-Step Setup:

First, create your discount code in Shopify (DiscountsCreate discount"Discount code" → set the percentage, e.g., 10%).

  1. Install the Payflow app and navigate to "Create customization"

  2. Choose "Hide payment methods" (or "Hide shipping methods" if you set up COD as a shipping rate).

    Note: Most merchants use COD as a payment method only. However, if you've set up COD as part of your shipping rate (e.g., "COD Shipping +$5"), choose "Hide shipping methods" instead.

  3. Set up discount conditions to target your discount code by percentage range: Add condition "Discount percentage""Greater than or equals to"9, then add second condition (AND operator) "Discount percentage""Less than or equals to"11.

    Note: Due to Shopify limitations, you cannot target discount codes by name. Instead, target by percentage range. For a 10% discount, use 9-11% range to ensure it's captured.

  4. Select "Cash on Delivery (COD)" payment method to hide (you can select multiple payment methods if needed).

  5. Save and test by applying your discount code at checkout to verify the selected payment methods or shipping methods disappear.

Quick video showcase of how to hide COD when discount codes are applied using Payflow

Why Offer Prepaid Order Discounts?

Encouraging prepaid orders makes business sense:

  • Reduce return rates: COD orders are 3-5x more likely to be returned or refused at delivery.
  • Improve cash flow: Get paid immediately instead of waiting for delivery completion.
  • Lower operational costs: Save on COD handling fees, failed delivery attempts, and reverse logistics.
  • Decrease fraud risk: Prepaid orders eliminate fake orders and intentional non-acceptance.

Why Use Payflow?

Unlike other apps that require order editing or post-purchase adjustments, Payflow offers:

  • Real-time conditional logic - Instant hide/show based on any condition
  • No order editing - Everything happens during checkout, not after
  • Unlimited conditions - Combine cart value, products, tags, location, shipping, payment methods
  • Works on all plans - Including Shopify Basic
  • Visual rules builder - No coding required, easy to set up
  • 24/7 live chat support - Friendly customer help whenever you need it 🤗

Conclusion

Offering prepaid order discounts while managing COD strategically can help you increase prepaid orders by 20-40%, reduce return rates, improve cash flow, and lower operational costs.

Setup takes just a few minutes, and you can adjust your rules anytime based on what works best for your business.

Try Payflow for free today

4.9rating
10 000+users
Payflow advanced payment and shipping method management for Shopify stores
  • Cash on delivery with a fee
  • Adjustment of payment methods
  • Adjustment of shipping methods

Frequently Asked Questions

Yes, this works with both manual discount codes and automatic discounts.

Yes, customers apply the discount code in the cart or at checkout before selecting their payment method. Once applied, COD will automatically disappear.

Yes, when setting up the customization in Payflow, you can select multiple payment methods to hide when the discount conditions are met. This is useful if you want to restrict several payment options when discounts are applied.

No, due to Shopify API limitations, you cannot directly target discount codes by their name (e.g., "ONLINE10"). Instead, you must target them by percentage range. For a 10% discount, use 9-11% range to ensure it captures the discount.

If you've set up COD as part of your shipping rate (e.g., "COD Shipping +$5"), choose "Hide shipping methods" instead of "Hide payment methods" when creating your Payflow customization. The rest of the setup remains the same.

Yes, if a customer removes the discount code at checkout, COD will become available again automatically. The rules are applied in real-time based on the current cart conditions.

For most payment methods including COD, Payflow works on all Shopify plans (Basic, Shopify, and Advanced). However, if you want to hide credit card payment methods and your store is based in USA or Canada, Shopify Plus is required. For stores in other countries, all plans are supported.

Interested in collaborating on a project?