Omni COD Return Risk Shield for WooCommerce

Description

Omni by Devlusion — COD Return Risk Shield helps Sri Lankan WooCommerce merchants identify repeat Cash-on-Delivery (COD) returners before dispatching parcels, while strictly protecting buyer privacy.

Key Features

  • Full-Width Order Risk Banner & All Orders Column: View Risk of Return, Returns Frequency, and Buyer Country Tag directly above every WooCommerce order (fully HPOS / High-Performance Order Storage compatible).
  • Universal Phone Normalization: Automatically normalizes all Sri Lankan mobile formats (07x, 7x, +947x, +9407x, 0094..., spaces/hyphens), all 28 TRCSL regional landlines (011, 081, 091, etc.), and international phone numbers.
  • Fault-Aware 8-Reason Return Marking: Mark returned orders with 8 clear tick-box reasons. Only customer-fault refusals add a strike; merchant packing errors, courier damage, and exchanges never penalize the buyer. Reversible in 1 click.
  • Omni Shield Analytics Dashboard: Dedicated WordPress admin menu showing store-specific COD analytics and synced monthly quota.
  • Live & Staging Simulator Modes: Test safely on LocalWP or staging sites with zero quota usage and pre-set simulation phone numbers (0770009999, 0770001111, 0770002222, 0770000000).

External Services

This plugin connects to the Omni by Devlusion Cloud API (https://api.omni.devlusion.com) to compute anonymous Cash-on-Delivery (COD) return risk assessments, record fault-aware return events, and display store-specific analytics.

  • What data is sent: When you explicitly opt in to connect your store or configure your API keys, the plugin sends your WordPress site URL (home_url()), store name, and—when a WooCommerce order is created or marked as returned—the order reference, payment method, order total, and normalized customer phone number.
  • How customer privacy is protected: Customer phone numbers are encrypted using AES-256-GCM for your private store record and converted to salted SHA-256 hashes for cross-merchant risk scoring. Plaintext phone numbers are never shared, sold, or exposed to other merchants.
  • Staging / Simulation Mode: When Staging Mode is active, requests are never added to the shared COD Risk Network and consume 0 monthly quota.
  • Service Provider: Devlusion (Pvt) Ltd (Sri Lanka)
  • Terms of Service: https://omni.devlusion.com/terms-and-conditions
  • Privacy Policy: https://omni.devlusion.com/privacy-policy

Installation

  1. Upload the omni-cod-return-risk-shield-for-woocommerce folder to /wp-content/plugins/ or upload omni-cod-return-risk-shield-for-woocommerce-1.0.0.zip via Plugins > Add New > Upload Plugin.
  2. Activate the plugin through the Plugins menu in WordPress (requires WooCommerce 8.0+). No external requests are made on activation.
  3. Open WooCommerce > Settings > Omni by Devlusion (or Omni Shield in the sidebar) and click Activate Free COD Shield (Opt-In) for 25 free COD checks/month (no account required), or enter your existing Merchant ID and API Key.
  4. To test safely without affecting live data, select Staging / Simulation Mode in Settings and create a test COD order using sample phone numbers (0770009999 High Risk, 0770001111 Medium Risk, 0770002222 Low Risk).
  5. Open Omni Shield in the WordPress sidebar to view store analytics and synced monthly quota usage.

FAQ

Is this plugin free?

Yes. The plugin itself is 100% open-source (GPLv2+). Connecting to the Omni Cloud API includes Omni Free (25 live COD assessments/month at LKR 0) and an optional Omni Basics subscription (LKR 450/month for unlimited live assessments).

Is it compatible with WooCommerce HPOS (High-Performance Order Storage)?

Yes. HPOS compatibility is explicitly declared via FeaturesUtil::declare_compatibility('custom_order_tables', ...).

Do you share my customers’ phone numbers with other stores?

Never. Only anonymous risk badges derived from salted SHA-256 hashes are returned.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Omni COD Return Risk Shield for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.1

  • Fix: Opt-In banner now hides immediately after clicking “Activate Free COD Shield (Opt-In)” and displays a Connected status bar with activation confirmation.
  • Fix: Zero-account Opt-In stores now authenticate API calls and analytics using their site-bound shop token without requiring a Merchant Portal ID.
  • Improvement: Production WordPress.org builds now lock directly to https://api.omni.devlusion.com and hide the Omni API Endpoint URL input from merchant settings (custom endpoint URL remains available for UAT/DEV via OMNI_ALLOW_CUSTOM_API_URL).

1.0.0

  • Initial public release with HPOS full-width Risk of Return banner, universal Sri Lankan & international phone normalization, 8 Fault-Aware Return Reasons, Omni Shield Analytics menu, and Live/Staging Simulator modes.