Description
Every fake or impulse cash-on-delivery order costs you twice. You pay to ship the parcel, the buyer refuses it at the door, and you pay again when it comes back unpaid (return to origin, or RTO). In India that is often Rs 100 to 200 per parcel, plus packing and stock stuck in transit for a week or two.
Kavach COD Order Verification asks cash-on-delivery buyers to confirm their order before you ship it. Real buyers confirm with one click. Orders nobody confirms are cancelled automatically and their stock goes back on sale.
How it works
- A customer places a cash-on-delivery order, with the block checkout or the classic checkout.
- Instead of “Processing”, the order gets the status COD awaiting confirmation. Its stock is held.
- The order received page shows Please confirm your order with a big Confirm my order button, and the customer gets an email with Confirm my order and Cancel this order buttons.
- A confirmed order moves to Processing and you ship it as usual. A cancelled order is cancelled and its stock is put back.
- If the customer does nothing, one reminder goes out after 6 hours and the order is cancelled after 24 hours. You choose the hours.
Features
- New order status “COD awaiting confirmation”: in the order list filters, the status dropdown and the bulk actions, counted in the Orders menu bubble and, from WooCommerce 11.2, treated as “actionable” in WooCommerce Analytics.
- Choose which orders need confirmation: all COD orders, only guests, only first-time customers (no earlier processing or completed order with the same account, email or phone), or only orders above an amount.
- Confirmation email with big Confirm and Cancel buttons, editable under WooCommerce > Settings > Emails (subject, heading, extra text, HTML or plain text). The templates can be copied to your theme.
- Reminder email after a number of hours you choose (default 6), sent once.
- Automatic cancellation after a number of hours you choose (default 24). The stock is restored. If you turn on WooCommerce’s “Cancelled order” email for customers (WooCommerce > Settings > Emails, recent WooCommerce versions), the customer is told.
- One-time, signed links: each link carries a token signed with HMAC-SHA256 and a secret key created on your site. It works for one order and one action, only while the order is waiting for confirmation and the confirmation time has not run out. Tampered or reused links are refused and the page is rate-limited.
- Safe with email link scanners: opening a link only shows the order and one button. Nothing changes until the customer presses it.
- Confirm on WhatsApp (optional): a button on the order received page opens WhatsApp with “CONFIRM order #123” addressed to your number.
- My Account: customers can confirm or cancel waiting orders from My Account > Orders.
- Tools for you: “Mark COD order as confirmed” and “Resend COD confirmation email” in the Order actions box, and “Mark COD confirmed” in the orders list bulk actions (HPOS and classic order screens). The order screen shows when the customer was asked, the reminder and the cancellation time.
- 30-day numbers: orders needing confirmation, confirmed, cancelled by the customer, cancelled automatically, confirmation rate and estimated shipping saved, in your store currency.
- Your own words for the order received page and the confirm page.
- “New order” email when you want it: when the order is placed, as WooCommerce does, or only once it is confirmed.
Works with
- Block checkout (Store API) and classic (shortcode) checkout
- WooCommerce’s built-in Cash on delivery payment method
- High-Performance Order Storage (HPOS) and the older posts storage
- Block themes and classic themes: the confirm page uses your theme’s header and footer
For developers
Filters: upaya_codc_needs_confirmation (decide per order), upaya_codc_previous_order_statuses, upaya_codc_confirmed_status, upaya_codc_link_hours, upaya_codc_whatsapp_text, upaya_codc_rate_limits, upaya_codc_client_ip, upaya_codc_count_in_menu, upaya_codc_batch_size. Actions: upaya_codc_confirmed and upaya_codc_cancelled. Templates: emails/upaya-codc-confirm.php, emails/plain/upaya-codc-confirm.php, upaya-codc-notice.php and upaya-codc-confirm-page.php, which you can copy to yourtheme/woocommerce/.
Privacy
The plugin sends nothing to any outside service and adds no tracking. It stores on each order whether, when and how it was confirmed or cancelled. To rate-limit the confirm page it keeps counters for up to one hour under a salted hash of the visitor’s IP address, never the address itself. The “Confirm on WhatsApp” button is a plain link to wa.me that the customer can choose to open; the plugin itself sends nothing to WhatsApp. A suggested paragraph is added to your privacy policy guide.
Screenshots




Installation
- Install and activate the plugin. WooCommerce must be active, with Cash on delivery turned on in WooCommerce > Settings > Payments.
- That’s it: every new cash-on-delivery order now waits for the customer’s confirmation, with a reminder after 6 hours and automatic cancellation after 24 hours.
- Optional: open WooCommerce > COD Verification to choose which orders need confirmation, change the hours, add your WhatsApp number and change the texts. The two emails are under WooCommerce > Settings > Emails.
FAQ
-
Is the stock held while an order waits for confirmation?
-
Yes. WooCommerce reduces the stock for the order, just as it does for a Processing order. If the order is cancelled (by the customer, by you or automatically), the stock is put back.
-
What does the customer see?
-
On the order received page, a “Please confirm your order” box with a Confirm my order button (and Confirm on WhatsApp if you added a number). In their inbox, an email with Confirm my order and Cancel this order buttons, the order details and the time the order will be cancelled if it is not confirmed. After confirming, they get WooCommerce’s usual “Processing order” email.
-
Some email services and company firewalls open every link in an email to scan it. If opening the link were enough, these scanners could confirm or cancel orders without the customer. So the link opens a page with the order and one big button, and only the button confirms or cancels. The button on the order received page confirms in one click.
-
What happens to orders nobody confirms?
-
They get one reminder (after 6 hours by default) and are cancelled after 24 hours by default. You can change both, or set them to 0 to turn them off. Both emails tell the customer when the order will be cancelled. To also send a note when it happens, turn on WooCommerce’s “Cancelled order” email for customers. The check runs every hour with WP-Cron, so a cancellation can happen up to an hour after the time. On a site with very few visitors, set up a real cron job for WP-Cron so the check runs on time.
-
How do WhatsApp confirmations work?
-
Add your WhatsApp number (country code and number, digits only) in WooCommerce > COD Verification. The order received page then shows “Confirm on WhatsApp”, which opens WhatsApp with “CONFIRM order #123” addressed to you. When the message arrives, open the order and choose “Mark COD order as confirmed” in Order actions, or tick several orders in the orders list and use the bulk action “Mark COD confirmed”. The plugin does not read your WhatsApp messages.
-
Can I ask only some customers to confirm?
-
Yes: all COD orders, only guests, only first-time customers (no earlier processing or completed order with the same account, email or phone), or only orders above an amount. Developers can decide per order with the
upaya_codc_needs_confirmationfilter. -
Can I confirm an order myself, for example after a phone call?
-
Yes. Open the order and choose “Mark COD order as confirmed” in Order actions, or use the bulk action “Mark COD confirmed” in the orders list. Changing the status to Processing by hand also works and is counted as confirmed by you.
-
The customer did not get the email. Can I send it again?
-
Yes, with “Resend COD confirmation email” in Order actions. The customer gets the full confirmation time again, and the links in the earlier email keep working.
-
Are the links safe?
-
Each link carries a token signed with HMAC-SHA256 and a secret key created on your site. It is tied to one order and one action, checked with a timing-safe comparison, and works only while the order is waiting for confirmation and its time has not run out. Changed or made-up links are refused, and a visitor who tries many invalid links is blocked for an hour.
-
Does it change the emails WooCommerce sends?
-
It adds two emails, the confirmation and the reminder. WooCommerce’s “New order” email still reaches you when the order is placed (or only after confirmation, if you choose that), and the customer gets WooCommerce’s “Processing order” email once the order is confirmed. When a customer cancels, you get WooCommerce’s “Cancelled order” email (you can turn this off).
-
How is “Estimated shipping saved” calculated?
-
Orders cancelled by the customer plus orders cancelled automatically in the last 30 days, multiplied by the cost of one returned parcel that you enter (default 150 in your store currency). Those are parcels you did not ship. It is an estimate, since some of those buyers might have paid on delivery.
-
What happens to waiting orders if I deactivate or delete the plugin?
-
Deactivating changes nothing on your orders, but WooCommerce no longer knows the “COD awaiting confirmation” status, so those orders are left out of the Orders list until you activate the plugin again. Deleting the plugin first moves every order still awaiting confirmation to “On hold”, with an order note, so none of them goes missing. It then removes the plugin’s settings, its data on orders and its scheduled job. Everything else on your orders stays as it is.
-
Does it work with other payment methods?
-
It only acts on WooCommerce’s built-in Cash on delivery method. Other payment methods are not affected.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Kavach COD Order Verification for WooCommerce” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Kavach COD Order Verification for WooCommerce” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- First release: “COD awaiting confirmation” status, confirmation and reminder emails with signed one-time links, confirm page, order received page notice, WhatsApp button, automatic cancellation, order and bulk actions, 30-day numbers.
