$ curl -X POST https://api.chainpal.org/api/v1/payments \
-H "Authorization: Bearer cp_pk_test_..." \
-H "Content-Type: application/json" \
-d '{"amount":125000,"customerEmail":"chidi.okafor@mail.example",
"reference":"ORDER10482"}'
{"success":true,"message":"payment initialized successfully",
"data":{"paymentId":"6708f3c2a1e4b7d9c0f12a34",
"paymentURL":"https://pay.chainpal.org/c/h7Qm2xR4kT9a"}}
# the customer pays 81.13 USDC on Celo Sepolia
← POST /hooks/chainpal payment.completed · v1=6330e786… verified
$ curl https://api.chainpal.org/api/v1/payments/6708f3c2a1e4b7d9c0f12a34/verify \
-H "Authorization: Bearer cp_sk_test_..."
{"success":true,"data":{"paymentReference":"ORDER10482",
"paid":true,"status":"completed","token":"USDC","network":"celo-sepolia"}}
$