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.
{
"price": {
"amount": "150000",
"currency": "NGN"
},
"currency": "USDT",
"network": "TRON",
"reference": "order_1044"
}Statuses
| Status | Meaning | What to do |
|---|---|---|
pending | Waiting for the customer | Nothing yet |
underpaid | Some arrived, not all | Ask the customer to send the rest to the same address |
completed | Paid in full and credited | Fulfil the order |
expired | Not paid in time | Create 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.