Testing
Build and test your integration against pre-production before you switch to production.
| Environment | Base URL |
|---|---|
| Pre-production | https://preprod.api.nerasika.com |
| Production | https://prod.api.nerasika.com |
Credentials
Section titled “Credentials”Ask Nerasol for pre-production credentials if you don’t have them.
What to test
Section titled “What to test”- Authentication: get a token, cache it, and refresh it after a
401. - Collections: a payment the customer approves, and one they decline or ignore.
- Callbacks: your endpoint replies
2xxquickly, handles the same callback twice, and confirms the result with a status check. - Status checks: recover a result when your callback endpoint was down.
- Errors: an invalid phone number, an amount with 3 decimals, and an unknown field all return
400. - Disbursements and reversals, if you use them, including
Not enough merchant funds. - Direct debit, if you use it: approval, a scheduled charge, and cancellation.
Receiving callbacks locally
Section titled “Receiving callbacks locally”Your callback URL must be reachable from the internet. While developing, use a tunnelling tool to expose your local server over HTTPS, and pass that URL as your callback URL.

