Built and supported by Modvanta - modvantaapps@gmail.com
What it does
Confirm Cash on Delivery orders only after the shopper enters an OTP
Fake and impulse Cash on Delivery orders cost you a wasted delivery each. This add-on for Website Cash on Delivery adds an OTP step: after the shopper chooses COD and clicks Pay, a 6-digit code is sent to their phone, and the order is only confirmed once the right code is entered.
Codes can be sent through Twilio, MSG91, Fast2SMS, Textlocal, 2Factor or the WhatsApp Cloud API. A Demo mode posts the code in the order chatter so you can test the whole flow before connecting a gateway.
Who it is for
For shops that offer Cash on Delivery
COD-heavy markets Stop confirming orders placed with wrong or fake phone numbers. |
Logistics teams Fewer refused parcels and wasted delivery trips. |
Shop owners Every verification is logged on the order. |
Key features
What you get
1OTP step before the COD order is confirmed
After Pay with Cash on Delivery, the shopper sees "Verify Cash on Delivery OTP" with the phone number the code was sent to. The order stays a quotation until then.

2Wrong codes are refused
An incorrect code shows "Invalid OTP. Please check the code and try again." and nothing is confirmed.

3Correct code confirms the order
With the right code the order is confirmed and the shopper reaches the normal confirmation page.

4OTP log on the sales order
Each code sent (and, in demo mode, the code itself) is posted in the order chatter.

5COD OTP records
Sales -> Orders -> COD OTP lists every code with order, phone, delivery state and verification.

6Choose your SMS or WhatsApp gateway
Settings -> Sales: COD OTP Provider and the credentials of Twilio, MSG91, Fast2SMS, Textlocal, 2Factor or WhatsApp Cloud API, plus the message text.

How it works
Step by step
| 1 | Install it with Website Cash on Delivery The OTP step is added to the COD payment. |
| 2 | Pick a provider Start with Demo, then enter your gateway credentials. |
| 3 | Shopper pays with COD A code goes to the phone number on the order. |
| 4 | Shopper enters the code The order is confirmed only with the right code. |
Settings
What you can configure
| Setting | Where | What it does |
| COD OTP Provider | Settings -> Sales | Demo, Twilio SMS, MSG91, Fast2SMS, Textlocal, 2Factor or WhatsApp Cloud API. |
| Message template | Settings -> Sales | Text of the SMS, with {order} and {otp} placeholders. |
| Gateway credentials | Settings -> Sales | Account SID / token, auth key, API key, sender or template per provider. |
FAQ
Questions buyers ask
Which phone number is used?
The phone number of the customer on the order.
Can I test without an SMS account?
Yes. Demo mode posts the code in the order chatter; that is how this page was tested.
Were the SMS gateways tested live?
The OTP flow was tested in Demo mode. Gateway sending needs your own account credentials.
Does it need the COD module?
Yes, it depends on Website Cash on Delivery.
Compatibility
Works with
Odoo 19 Community Odoo 19 Enterprise Depends on: website_sale, sale_management, mdv_cash_on_deliveryBuilt and tested on Odoo 19 with the default website theme.
Verify every Cash on Delivery order
Questions before buying, help with setup, or a change you need: write to us and a developer answers.
SUPPORT |
AUTHOR Modvanta |
INCLUDED Source code, free bug fixes for Odoo 19 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Sales (sale_management)
• eCommerce (website_sale) • Discuss (mail) • Invoicing (account) • Website (website) |
| Community Apps Dependencies | Show |
| Lines of code | 1238 |
| Technical Name |
mdv_cod_otp_verification |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/cod-otp-verification/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module