DocumentationPaymentsCODVariables

COD Adapter

amerta


amerta / Cash on Delivery Payment Adapter / CODAdapter

Variable: CODAdapter

const CODAdapter: PaymentAdapter

Defined in: amerta/payload/payments/gateway/cod.ts:42

Interface

Cash on Delivery (COD) Payment Adapter CODAdapter

Remarks

This adapter implements the PaymentAdapter interface to handle cash on delivery payments. It immediately marks orders as paid without requiring external payment processing.

Features

  • No external payment gateway integration
  • Immediate payment confirmation
  • Customizable instructions for the Thank You page
  • Suitable for local or store pickup orders

Configuration

  • slug: "cod"
  • label: "Cash on Delivery"