TutorialsNov 4, 2026
Accept Chapa payments in Next.js and deploy it
To take Chapa payments in Next.js, call Chapa's initialize endpoint from the server with your secret key, redirect the customer to the checkout_url it returns, and mark the order paid only after GET /v1/transaction/verify/<tx_ref> says the status is success and the amount, currency and mode match. Chapa tells you a payment happened three ways: the customer comes back to your return_url, Chapa calls your callback_url, and it POSTs a webhook. Treat all three as a cue to verify, never as proof.