← All modules

Cash on Delivery

COD without the fake-order problem.

Open cash-on-delivery invites fake orders: a courier fee spent both ways on a delivery nobody accepts. This module requires OTP phone verification before a doorstep COD order can be placed, automatically flags numbers and customers with a pattern of failed verification or returned deliveries, and extends the same booking-deposit mechanism to B2B customers who want to reserve stock and pay in-store at pickup.

Features

  • OTP phone verification via a pluggable SMS gateway
  • Automatic blacklisting on failed verification or repeated returned deliveries
  • A real booking deposit through Magento's own checkout, refund policy configurable
  • "Pay in store at pickup" mode for approved B2B customer groups

one-time payment

One-time payment for the term you choose, covering updates & support for that long. It doesn't auto-renew; renew any time from your dashboard.

One production store per license, with development and staging copies for that same store included. View license & support terms.

Compatibility

Magento 2.4.4 to 2.4.9

PHP 8.1, 8.2, 8.3, 8.4

Lifetime access to source code

Support & updates for your selected term

30-day money-back guarantee

More about Cash on Delivery

The problem

Magento's free cash on delivery method has no fraud control at all, which means every fake or mistyped order becomes a courier fee spent twice, once out and once back. Store owners running COD in markets where it is the dominant payment method need a way to catch bad orders before a courier ever leaves the warehouse, and B2B accounts who collect in person and pay at the counter need a different, lighter version of the same idea.

Two channels, one payment method

Doorstep delivery and pay-in-store-at-pickup are handled by the same nextbyte_cod payment method but with separate rules underneath. Pay in Store is only offered on a collect-in-store style shipping method, detected by carrier code with no hard dependency on any specific pickup module, and only to signed-in customers in approved groups, since a wholesale account is not the fraud risk an anonymous doorstep order is. OTP verification is skipped for it entirely.

Verification and blacklisting

Before a doorstep order can be placed, the shopper confirms a one-time code sent to the phone number on the order, through a pluggable SMS gateway interface rather than a single hardcoded provider. A phone number that keeps failing verification, or a customer whose deliveries keep coming back returned to origin, gets blocked automatically once a configurable threshold is crossed, so a merchant does not have to notice the pattern by hand.

The booking deposit

Magento ties exactly one payment method to one order, so a single order genuinely cannot split into "card for the deposit, cash for the rest." Rather than faking a partial charge inside one order, the deposit is its own small, completely ordinary order for a single deposit product, checked out through Magento's real checkout against whichever payment methods the merchant allows. It links back to the Cash on Delivery order it secures and refunds through a normal credit memo if the refund policy allows it.

What you get day to day

The result is a doorstep COD channel that filters out the orders most likely to fail before a courier is dispatched, a pay-in-store channel built for the trade accounts who actually want it, and a cash reconciliation console that shows exactly what every courier is holding and when it was handed over.

Configuration

Where to find it in the Magento admin

Enabling the payment method, its titles for each channel, and sort order live under Stores > Configuration > Payment Methods > Nextbyte Cash on Delivery, alongside your store's other payment methods.

Everything else lives under Stores > Configuration > Nextbyte > Cash on Delivery:

Section What you can set
Doorstep Delivery Enable, allow guest checkout, customer groups, minimum and maximum order total, allowed countries, blocked postcodes, allowed shipping methods, fee
Pay in Store at Pickup Enable, customer groups, minimum and maximum order total, fee
Phone Verification Enable, which SMS gateway to use and its settings, code length, expiry and attempt limits, resend cooldown, automatic block threshold
Booking Deposit Deposit type and amount per channel, minimum and maximum clamp, which payment methods can fund it, refund policy on cancellation
Return to Origin Enable tracking, automatic block threshold, how far back that threshold looks
Notifications Staff email recipients, template and sender identity

Cash reconciliation, the phone and customer blacklist, and the courier registry are managed under Nextbyte > Cash on Delivery in the main admin menu, not in Store Configuration.

Reviews

No reviews yet.

We use cookies to improve your experience on our site. Do you agree to our use of cookies? Read our Privacy Policy.