Description
COD Anti-Fraud for WooCommerce protects WooCommerce online stores from non-delivered or fraudulent Cash on Delivery (COD) orders by combining dynamic risk evaluation with mandatory WhatsApp OTP verification.
Key Features
- Dynamic Risk Engine: Calculates a 0-100 risk score based on guest checkout status, cart total, and past failed/cancelled COD history.
- WhatsApp OTP Verification Gateway: Automatically sends a 6-digit verification code to the customer’s phone via WhatsApp before confirming COD orders.
- Anti-Bypass Protection (Server-Side & Client-Side): Strict pre-checkout verification enforcement ensuring no unverified COD orders can be submitted.
- Optimized Checkout UI/UX: Dedicated
#wc-cod-otp-wrappercontainer with smooth real-time states, responsive design, and compatibility with Classic and Blocks checkout. - Smart Thresholds & Gateways: Configure minimum/maximum cart amounts for COD, blacklist fraudulent phone numbers or emails, and whitelist trusted VIP customers.
- Rate Limiting & Anti-Brute-Force: Built-in rate limiter by phone number and IP address to prevent SMS/WhatsApp flooding.
- Multiple Gateway Support: Native integration with UltraMsg, BeraLab Baileys Gateway, and extensible for Twilio / custom WhatsApp providers.
- Order Meta & Admin Details: Transparent risk scores and verification timestamps displayed directly inside WooCommerce order details.
- PHP 8.x & HPOS Certified: Fully compatible and tested with PHP 8.0-8.3 and WooCommerce High-Performance Order Storage (HPOS).
External Services
This plugin connects to external WhatsApp API services (such as UltraMsg WhatsApp API or the BeraLab WhatsApp Gateway) to send One-Time Password (OTP) verification messages via WhatsApp to customers choosing the Cash on Delivery (COD) payment method.
- UltraMsg Provider: UltraMsg Inc. – https://ultramsg.com/
- Terms of Service: https://ultramsg.com/terms-conditions.php
- Privacy Policy: https://ultramsg.com/privacy-policy.php
- BeraLab Gateway Provider: BeraLab Cloud Gateway – https://beralabs.it/whatsapp-gateway.html
- Terms & Privacy Policy: https://beralabs.it/privacy-policy.html
What data is sent to the WhatsApp service?
* The customer’s mobile telephone number entered during checkout.
* The dynamically generated 6-digit OTP verification code text.
No customer passwords, credit card numbers, billing addresses, or purchase history details are shared with external messaging gateways. API requests are triggered exclusively when a customer requests an OTP code to verify a Cash on Delivery order.
Captures d’écrans




Installation
- Upload the
woo-cod-antifrauddirectory to your/wp-content/plugins/directory. - Activate the plugin through the Plugins menu in WordPress.
- Go to WooCommerce > Settings > COD Anti-Fraud to configure settings and your WhatsApp API credentials.
FAQ
-
Is this plugin compatible with High-Performance Order Storage (HPOS)?
-
Yes, COD Anti-Fraud for WooCommerce is fully compatible and certified with HPOS (Custom Order Tables).
-
Is PHP 8.x supported?
-
Yes, fully compatible and tested with PHP 7.4 through PHP 8.3.
-
What WhatsApp gateways are supported?
-
The plugin natively supports UltraMsg, BeraLab Baileys Cloud Gateway, and can be extended for Twilio and custom API endpoints.
-
What happens if the customer does not verify the OTP?
-
If OTP verification is required based on settings or risk score, checkout submission is strictly blocked on both client-side and server-side until valid verification is completed.
-
Does this plugin work with guest checkout?
-
Yes, guest checkout is fully supported and analyzed with higher risk evaluation weights.
Avis
Il n’y a aucun avis pour cette extension.
Contributeurs/contributrices & développeurs/développeuses
« COD Anti-Fraud for WooCommerce » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.
ContributeursTraduisez « COD Anti-Fraud for WooCommerce » dans votre langue.
Le développement vous intéresse ?
Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.
Journal des modifications
2.0.2
- Fix: Rigorosa prevenzione IDOR su endpoint AJAX di verifica e invio OTP con validazione costante crittografica via hash_equals su order_key.
- Security: Sanitizzazione e isolamento delle risposte JSON contro information leakage di codici OTP e dettagli interni dei gateway.
- Enhancement: Protezione da brute force e rate limiting transazionale su Transient per le richieste OTP WhatsApp.
- Improvement: Piena conformità WooCommerce HPOS (High-Performance Order Storage) e capability check ‘manage_woocommerce’ nell’admin backend.
2.0.1
- WhatsApp OTP Checkout Flow: Full integration of WhatsApp OTP phone verification (UltraMsg & BeraLab Baileys Gateway) before Cash on Delivery orders can be confirmed.
- Anti-Bypass Hardening: Multi-layered client-side and server-side verification lock preventing order submission bypass or tampering.
- UX & UI Optimizations: Redesigned interactive
#wc-cod-otp-wrappercontainer with smooth real-time states, visual feedback, and responsive layout. - HPOS & PHP 8.x Certified: Validated and fully compatible with High-Performance Order Storage (Custom Order Tables) and PHP 7.4-8.3 runtimes.
- Security & Standards Compliance: Strict adherence to WordPress.org security guidelines (sanitization, unslashing, nonces, and output escaping).
1.1.2
- WordPress.org standards compliance: sanitized superglobals, nonces validation, and output escaping.
- Unified settings option keys across all modules.
1.1.1
- Maintenance release: version bump and compatibility verification.
1.1.0
- Added HPOS compatibility.
- Added customizable message templates for WhatsApp OTP.
- Enhanced risk engine algorithms and order history lookup.
- Added rate limiting and IP abuse protection.
- Added whitelist and blacklist management.
1.0.0
- Initial release.
