Implement QrPaymentIntent
A guide on how to handle QR payment intent in your bank/wallet app.
1. Get your API keys
Send an email to [email protected]
2. Create an app
An app is a representation of your mobile bank/wallet app where users will be redirected to. Use your API keys to invoke the create app endpoint.
3. Configure your app
Setup scheme name
To setup your scheme name on android and iOS add the following code snippets to your AndroidManifest.xml
and info.plist
respectively.
Replace mainbanc
with the scheme name you selected from step 2 above. Also replace com.mainbanc.app
with your actual iOS bundle URL.
Verify payload
To make sure the intent is from a trusted source it’ll contain data of the QR code and a signature attached to it.
The signature is signed using RSASSA-PKCS1-v1_5
. Use the public key gotten from the create app response as the signature key.
4. Initiate payment
Once your have verified the payload, invoke the initiate intent endpoint with the following parameters
5. Send payment status
When payment is concluded update the status using the update intent API.