Submit customer card OTP
Resend OTP
otpRequired: true. The customerâs bank has sent them an OTP, and the charge stays pending until you submit it.
The bank sends the OTP to the phone number or email address linked to the card. Show the customer a field to enter it. If the customer isnât using your app, for example during a scheduled charge, send them a link to that screen straight away.
POST /v1/checkout/checkout-card-otp
Headers
This call doesnât need anAuthorization or accountId header.
Request body
Response body
Even whendata.status is true, confirm the charge before you give value.
If the OTP is wrong
If the bank rejects the OTP,data.status is false and data.message says why, for example âIncorrect OTP. Please retry with the correct OTP thatâs sent to your phoneâ. Let the customer try again.
You can submit an OTP 3 times for each charge. After that, Nomba refuses further OTPs with the message TOO MANY OTP ATTEMPTS. Start a new charge with a new orderReference.
Resend the OTP
If the customer didnât get the code, callPOST /v1/checkout/resend-otp. Send the chargeâs transactionId in the orderReference field. Resending doesnât extend the 15-minute limit.
Next: Confirm the charge
Check the final status before you give the customer value.