Title: Lexiata Secure COD
Author: Suresh Lasantha
Published: <strong>November 21, 2025</strong>
Last modified: January 16, 2026

---

Search plugins

![](https://ps.w.org/lexiata-secure-cod/assets/banner-772x250.png?rev=3441079)

![](https://ps.w.org/lexiata-secure-cod/assets/icon-256x256.png?rev=3441073)

# Lexiata Secure COD

 By [Suresh Lasantha](https://profiles.wordpress.org/mrsureshlk/)

[Download](https://downloads.wordpress.org/plugin/lexiata-secure-cod.1.0.4.zip)

 * [Details](https://pcd.wordpress.org/plugins/lexiata-secure-cod/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/lexiata-secure-cod/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/lexiata-secure-cod/#installation)
 * [Development](https://pcd.wordpress.org/plugins/lexiata-secure-cod/#developers)

 [Support](https://wordpress.org/support/plugin/lexiata-secure-cod/)

## Description

Reduce fake orders and return rates (RTO) by collecting a small deposit payment 
upfront for Cash on Delivery (COD) orders.

**Lexiata Secure COD** allows you to charge a fixed amount or a percentage of the
total order value as an advance payment.

The customer pays the deposit online using any other payment gateway (Card, Bank
Transfer, etc.), and the remaining balance is automatically calculated and shown
as the “Amount to Pay to Courier”.

### Key Features

 * **Partial Payment for COD:** Collect a deposit and let customers pay the rest
   on delivery.
 * **Flexible Deposit Amount:** Set a Fixed Amount (e.g., 250 LKR) or a Percentage(
   e.g., 10%).
 * **Shipping Method Control:** Enable the partial COD option only for specific 
   shipping methods (e.g., Flat Rate).
 * **Gateway Restriction:** Restrict which payment gateways can be used to pay the
   deposit (e.g., allow only Card Payments for the deposit).
 * **Automatic Calculation:** Automatically adds a negative fee to the cart to deduct
   the balance, showing the correct total to pay now.
 * **Clear Instructions:** Display custom instructions on the Thank You page and
   Customer Emails.
 * **Courier Balance Display:** Clearly shows “Amount to Pay to Courier” in emails
   and order details to avoid confusion.
 * **Professional UI:** Clean and professional admin settings and frontend notices.

### How it Works

 1. Customer selects “Cash On Delivery (Advance Payment)” at checkout.
 2. The system calculates the deposit amount required.
 3. The balance amount is deducted from the “Total to Pay Now”.
 4. Customer pays the deposit online.
 5. The invoice and email show the remaining balance to be paid to the courier.

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/lexiata-secure-cod` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Go to **WooCommerce > Settings > Payments**.
 4. Click on **Lexiata Secure COD** (or “Manage”).
 5. Enable the plugin, set your Title, Deposit Amount, and other settings.
 6. Save changes.

## FAQ

### Can I set a percentage deposit instead of a fixed amount?

Yes, go to the plugin settings and change “Deposit Type” to “Percentage”.

### Does this work with any Payment Gateway?

Yes, you can use any installed WooCommerce payment gateway (Stripe, PayPal, PayHere,
Bank Transfer, etc.) to collect the deposit.
 You can also restrict specific gateways
in the settings.

### How does the customer know how much to pay the courier?

The plugin automatically adds a row “Amount to Pay to Courier” to the Order Details
page and the Order Email sent to the customer.

### Can I change the text shown at checkout?

Yes, the Title, Description, and Instructions are fully customizable from the settings
page.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Lexiata Secure COD” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Suresh Lasantha ](https://profiles.wordpress.org/mrsureshlk/)

[Translate “Lexiata Secure COD” into your language.](https://translate.wordpress.org/projects/wp-plugins/lexiata-secure-cod)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/lexiata-secure-cod/),
check out the [SVN repository](https://plugins.svn.wordpress.org/lexiata-secure-cod/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/lexiata-secure-cod/)
by [RSS](https://plugins.trac.wordpress.org/log/lexiata-secure-cod/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.4

 * Improved JS enqueueing using a registered script handle for better compatibility.
 * Fixed issue where checkout events were not triggering correctly in some themes.

#### 1.0.3

 * Replaced `json_encode` with `wp_localize_script` for secure data passing.
 * Fixed escaping issues in JavaScript.

#### 1.0.1

 * Renamed plugin to Lexiata Secure COD.
 * Fixed JS/CSS enqueueing issues (removed direct echo).
 * Updated contributors list.

#### 1.0

 * Initial release.

## Meta

 *  Version **1.0.4**
 *  Last updated **3 months ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/lexiata-secure-cod/)
 * Tags
 * [cash on delivery](https://pcd.wordpress.org/plugins/tags/cash-on-delivery/)[cod](https://pcd.wordpress.org/plugins/tags/cod/)
   [deposit](https://pcd.wordpress.org/plugins/tags/deposit/)[partial payment](https://pcd.wordpress.org/plugins/tags/partial-payment/)
   [woocommerce](https://pcd.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/lexiata-secure-cod/advanced/)

## Ratings

No reviews have been submitted yet.

[Add my review](https://wordpress.org/support/plugin/lexiata-secure-cod/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/lexiata-secure-cod/reviews/)

## Contributors

 *   [ Suresh Lasantha ](https://profiles.wordpress.org/mrsureshlk/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/lexiata-secure-cod/)