Hide a Payment Method When a Discount is Applied on Shopify

When offering discount codes, merchants often want to restrict them to prepaid orders only. COD combined with discounts increases fraud risk and return rates, but Shopify has no built-in way to link discounts to payment method availability.

How Payflow solves this

  • Block COD whenever any discount is applied at checkout
  • Target specific discount percentages or amounts
  • Reduce fraud by requiring prepaid payment for discounted orders

Setup

  1. 1

    Create customization > Hide payment methods.

  2. 2

    Add Has discountIs true. Or use Discount percentageAt least1 for more precision.

  3. 3

    Target the method: Pre-defined → e.g. Cash on Delivery.

  4. 4

    Active, Save, and verify at checkout.

Full guide with all options →

Set this up in minutes

Payflow is free to install. No theme edits. No code. Built for Shopify certified.

Install free on Shopify
  • Free to install
  • 50+ conditions
  • Built for Shopify certified
  • No theme edits required