Validate Transaction OTP
Learn how to validate a customer purchase via OTP
Validate Transaction OTP API
This endpoint is used to validate the OTP (One-Time Password) for transaction authentication. It ensures that the customer is authorized to complete the payment by verifying the OTP entered during the process.
Request Parameters
Ensure secure handling of md (merchant data) and token to maintain transaction integrity.
Below is a list of request parameters accepted for validating an API.
otp string Yes The one-time password provided by the customer.
Unique reference for the transaction.
Unique identifier for the payment.
Merchant data, used for 3D Secure transactions.
Validate OTP API Response
A sample response of what to expect when a call is made to the API
Handling successful API response body
When a transaction has been initiated successfully, there is response data that is returned. This can be in turn to update the customer about the current stage of their transaction.
Below is the list of responses to expect and the usage.
Indicates if the OTP validation was successful.
Descriptive message about the result.
Contains detailed transaction data.
Handling failed API response body
When your response message is returned as a failed response, the response.data
will return an array containing details of the error. You can show this to your customer to notify them of what is wrong.
Below is a sample failed response data.