API Integration
Integration with NjiaPay through API happens in 4 easy steps:
1. Authentication
When making API requests to NjiaPay, the API Key can be used. You can login to the portal to generate your API keys or we will provide you with an API key. We provide different API keys and base URLs for each environment.
2. Make the intent API call
Send an API call providing information like amount, currency and references to initiate the payment.
3. Redirect the customers to the check-out page
When you are using NjiaPay in app we recommend you use a webview that loads in the app, this gives the best experience.
1. Let your customer complete the payment
2. Let NjiaPay do the crunching of numbers to determine to what PSP to send or retry the payments. Optimizing for least cost or payment performance.
4. Process the results from the webhook
Once your customer has successfully paid, you get the confirmation from our webhook message.
Optionally: you can call the intents api to check the payment status