Skip to main content

Payment Methods

The Ecom platform supports multiple payment methods:
  • Cash on Delivery (COD)
  • Wallet Payment
  • Manual Payment
  • Online Payment Gateways (Stripe, PayPal, Razorpay, etc.)

Get Payment Types

Example

curl -X GET https://your-domain.com/api/v2/payment-types \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Cash on Delivery

Request

payment_type
string
required
Set to cash_on_delivery

Example

curl -X POST https://your-domain.com/api/v2/payments/pay/cod \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "payment_type": "cash_on_delivery"
  }'

Wallet Payment

Pay with Wallet

Get Wallet Balance

Response

{
  "balance": 500.00,
  "formatted_balance": "$500.00"
}

Get Wallet History

Offline Wallet Recharge

amount
number
required
Recharge amount
payment_method
string
required
Offline payment method used
trx_id
string
Transaction ID
photo
string
Payment receipt (base64 or upload ID)

Manual Payment

Request

payment_type
string
required
Manual payment type (e.g., manual_payment_1)
trx_id
string
Transaction ID
photo
file
Payment proof image

Offline Payment Submit

Online Payment Gateways

Online Payment Initialize

payment_method
string
required
Payment gateway name
amount
number
required
Payment amount
payment_type
string
required
Type: cart_payment, order_re_payment, wallet_recharge, etc.

Payment Success

Payment Done

Payment Failed

Stripe

Create Checkout Session

Stripe Payment Callback

Stripe Success

Stripe Cancel

PayPal

Get PayPal Payment URL

PayPal Payment Done

PayPal Payment Cancel

Razorpay

Pay with Razorpay

Razorpay Payment

Razorpay Success

Paystack

Initialize Paystack

Paystack Success

Flutterwave

Get Flutterwave URL

Flutterwave Callback

Bkash

Begin Bkash Payment

Bkash Webpage

Bkash Execute

Bkash Checkout

Bkash Process

Bkash Callback

Bkash Success

Bkash Fail

Nagad

Begin Nagad Payment

Nagad Verify

Nagad Process

SSLCommerz

Begin SSLCommerz

SSLCommerz Success

SSLCommerz Fail

SSLCommerz Cancel

Aamarpay

Aamarpay Payment

Aamarpay Success

Aamarpay Cancel

Other Payment Gateways

Khalti

Iyzico

Paytm

Instamojo

Payfast

Customer Packages

Get Package List

Purchase Package (Offline)

Purchase Package (Free)

Build docs developers (and LLMs) love