Skip to content
ChainPesaDocsTest mode
Dashboard

Guides

Accept payments

Hosted checkout, local-currency pricing and what each status means.

Price in stablecoins

Send amount. You are credited in the stablecoin, less the checkout fee, or converted to a linked local currency if you set settle_to.

curl -X POST https://dev.chainpesa.com/api/v1/payments \
  -H "Authorization: Bearer $CHAINPESA_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": "250.00",
    "currency": "USDT",
    "network": "TRON",
    "reference": "order_1042"
  }'

Price in local currency

Send price instead. The customer pays the stablecoin equivalent at a rate locked for 30 minutes, fees included, and you receive the full price in that currency. You must first link a bank or mobile-money account for it under Settlements.

Request body
{
  "price": {
    "amount": "150000",
    "currency": "NGN"
  },
  "currency": "USDT",
  "network": "TRON",
  "reference": "order_1044"
}

Statuses

StatusMeaningWhat to do
pendingWaiting for the customerNothing yet
underpaidSome arrived, not allAsk the customer to send the rest to the same address
completedPaid in full and creditedFulfil the order
expiredNot paid in timeCreate a new payment

Customers must send on the network you chose. Funds sent on another network can be lost.

Reference: Create a payment, Retrieve a payment.