Skip to main content

COD to Prepaid with Branded WhatsApp

COD to Prepaid helps you convert Cash on Delivery orders into prepaid orders. A WhatsApp message with a payment link invites the customer to pay online, which can reduce returns and RTO.

How it works

After a COD order is placed, the customer can receive a WhatsApp message that offers a payment link and a discount. If the customer pays online, the order becomes prepaid.
The full COD to Prepaid setup, including the customer journey after the payment link, is covered in Setting COD to Prepaid Conversion in Shopify. This article covers the settings you configure in COD King.

Prerequisites

  • COD King installed, with a payment gateway account. The payment account type dropdown on the COD to Prepaid page lists the supported gateways.
  • A Thank You page and an Order Status page that can show the COD King app block.
  • A connected WhatsApp Business number, if you want to send WhatsApp messages (see Introduction and How It Works).

Step-by-step setup

Step 1: Set up the payment gateway

  1. Go to COD King → Settings.
  2. Under COD Workflow, open COD to prepaid.
  3. In the Payment section, select a Payment account type. The dev store uses Razorpay.
  4. Enter your API Key and API Secret.
  5. Click Create test link to generate a ₹1 payment link with your saved keys. The page says this confirms that the setup works for Razorpay, PayU and Cashfree.
COD to prepaid Payment section with the Create test link button
  1. Payment account type dropdown.
  2. Create test link button. It generates a ₹1 payment link to test your setup.
Create the test link only with your own test or live keys, and only when you are ready to test. It creates a real payment link.

Step 2: Turn on the banner in your theme

In the Activate in theme section, both pages are marked Required:
  • 1. Thank You Page: click Open Thank You Settings.
  • 2. Order Status Page: click Open Order Status Settings.
Turn on the COD King app block on both pages and save. The banner does not show on the Thank You or Order Status page until both are on.

Step 3: Write the banner message

Under Banner Settings, enter the Banner heading shown after a COD order is placed. The dev store example is “Convert your COD order to Prepaid to get ₹150 off and Faster delivery.”

Step 4: Set up WhatsApp reminders

Reminder timing, cart range and discount override are configured on the COD to Prepaid page.
Needs verification: The reminder fields and the WhatsApp message that includes the payment link were not captured in the dev store. Confirm the current options and the 24-hour gap rule before publishing this step.

Configuration options

Practical example

A customer places a COD order for ₹900. The Thank You page shows the banner “Convert your COD order to Prepaid to get ₹150 off.” If the customer pays online with the payment link, the order is converted to prepaid and the store avoids the COD delivery risk.

Verification

  1. Click Create test link and open the link to confirm that it loads.
  2. Place a test COD order on your store and check that the banner appears on the Thank You page and the Order Status page.

Troubleshooting

  • The banner does not appear. Make sure the COD King app block is on for both the Thank You Page and the Order Status Page, then save each page.
  • The test link does not work. Check the API Key and API Secret, and make sure they are for the same gateway you selected.

Important notes and limitations

  • COD to Prepaid messages are charged at the WhatsApp marketing rate, which is $0.0116 per message on the dev store.
  • Keep reminder messages short and clear.