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
string
required
The code the customer received from their bank
string
required
The
orderReference you sent with the chargestring
required
The
transactionId returned by the chargeResponse body
string
required
Response code
string
required
Response description
object
required
data.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.