Checkpost

How to stop prepaid orders paying the COD shipping fee on Shopify

Short answer: When the shopper picks the shipping rate that includes your COD fee, hide every payment method except Cash on Delivery so prepaid orders never pay the fee. In Checkpost, choose “COD fee: prepaid methods off with the COD rate” from Templates, adjust the values, test it, then save and enable the rule.

The problem

If prepaid methods stay available with the COD rate, shoppers who choose it and then pay by card are charged a cash fee for nothing, which leads to complaints and refunds.

How to set it up

  1. Install Checkpost from the Shopify App Store.
  2. Open Templates and choose COD fee: prepaid methods off with the COD rate.
  3. Use the word in your COD rate's name and the name your checkout shows for cash on delivery.
  4. Use Try this rule to test a sample cart, then click Save rule.

The rule

Hide payment methods except those containing "Cash on Delivery" when all of these conditions is true:

Shoppers see no message: the methods are changed before checkout shows them.

Rule definition (JSON)
{
  "name": "Only COD with the COD rate",
  "action": {
    "kind": "hide_payment",
    "methods": [
      "Cash on Delivery"
    ],
    "match": "except"
  },
  "match": "all",
  "conditions": [
    {
      "kind": "text",
      "field": "delivery_method_title",
      "op": "contains_any",
      "values": [
        "COD"
      ]
    }
  ]
}

Examples with the default settings

These outcomes apply to this rule alone. Other enabled rules may also affect checkout.

Test cartExpected outcome
Standard (COD) chosen: only COD remainsHide payment methods except those containing "Cash on Delivery"
Standard chosen: every method staysMethods unchanged by this rule

Where this rule works

This changes matching payment methods that Shopify exposes to the customization. Payment rules do not have the same express-checkout coverage as cart validation. Shopify limits wallet customization and credit-card customization on non-Plus US/Canada stores. See Shopify's payment compatibility and verify your COD/manual method in a development store. Geographic payment rules currently use the first delivery group's address.

Tips

FAQ

What if Cash on Delivery isn't offered for the address?

Then no payment method remains with the COD rate, and the shopper has to pick the normal rate. Offer the COD rate only in zones where you accept cash on delivery.

Related rules

Add cod fee: prepaid methods off with the cod rate to your store