Get started
Test mode
Use an sk_test_ key to exercise the API without moving money.
Test mode uses the same URL as live, https://middleware.test.nextcba.com/api/v1/pg/v1, with a key that starts with sk_test_. Payments get a simulated bank account (numbers starting with 99, bank name CSwitch Test Bank). Nothing is posted to core.
Try it
The playground below returns sample responses in the same shape as the gateway. It does not create a payment on your merchant account. A real test key is 40 characters after sk_test_. The key already filled in is only for this page.
Response
Send a request to see the sandbox response.
Mark a payment paid
After POST /payments/initialize, call POST /test/payments/{reference}/simulate. The payment becomes paid, simulated is true, and your webhook receives payment.success. A live key cannot call this route.
An unknown reference is 404 PAYMENT_NOT_FOUND. A payment that failed to be set up is 409 PAYMENT_FAILED and cannot be simulated.