Feedflock is liveTry it

How to Set Discounts for Card Payments Only on Shopify 💳

Learn how to create conditional discounts based on payment method in Shopify. Hide COD, target prepaid payments only, and control when discounts apply using Payflow.

Jan NemecJan 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 (Discounts → Create 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.

Payflow
A Shopify app by Appfleece

Payment and shipping methods on your own rules

Hide, rename or reorder payment and shipping methods by cart, customer or country. No code.

  • Cash on delivery fee and card-only discounts
  • Hide payment and shipping methods by rules
  • Payment QR code on the thank you page
on the Shopify App Store
5.0 ★
on the Shopify App Store
merchants
15,000+
merchants

Frequently Asked Questions

Does this work with automatic discounts or only discount codes?
Yes, this works with both manual discount codes and automatic discounts.
Will customers see the discount before selecting a payment method?
Yes, customers apply the discount code in the cart or at checkout before selecting their payment method. Once applied, COD will automatically disappear.
Can I hide multiple payment methods at once?
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.
Can I target discount codes by name instead of percentage?
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.
What if I use COD as a shipping method instead of a payment method?
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.
Can customers still see COD if they remove the discount code?
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.
Do I need Shopify Plus to use this feature?
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.

Tell us about your project

You'll talk directly to the people who build your store. We'll come back with a concrete take and an estimate.