Authorize OTP to complete payment
To authorize transaction (the transactions that returns T0) with OTP use this end point
1 |
POST /api/v3/purchases/otps/auths |
Sample Request
To make authorize transaction with otp, set up your authorize otp request like this.
1 2 3 4 5 6 7 8 |
{ "authData":"Lisy0gf1qwSgAOR4xNS5jkiLFSh0C6dYqyzQhxopAVHaG0DqTaB8yHYGPfYBAg2ZShyGp2YJRzLsxpquv RuUZe6IO7hV+DDG1fsfx6bzLL7i6c/UFcw/T+QrsNOUgLjSqqlRNkMFmn1XN3CT0PtYEMwExE38cFHjZN8dX2xZOKhwFJ9CJ Os2VXeXCvfExxyZ5k3q+8dSxyHjYKrP3qfrjxhw7NFgEIvuo2xDlUTP6DLe8C/Z7QrBO3ggF7fo7Uz8t/vTcY7HvWmfX2Ufi T7T5rzbOw24ahPZ8/tQg1dvpsiO81Qaw/lS+8P+GigkNO5+GeTpRjo+CO+n656zrwU8MQ==", // Authentication Data. "paymentId":"66599", // Payment Identifier. "otp":"742591" // One time password. } |
Sample Response (success)
After transaction has been authorized with otp, the expected successful payment response is similar to this.
1 2 3 4 5 6 7 8 9 |
{ "transactionIdentifier": "FBN|WEB|VNA|23-05-2016|66593|177266", // Transaction unique identifier. "token": "5123452812351086018", // Token for future payment. "tokenExpiryDate": "2004", // Card or Token expiry date in YYMM format. "panLast4Digits": "7499", // Card last four digits. "amount": "200.00", // Amount in Naira. "transactionRef": "ESBDEV10002", // A unique transaction reference number. "message": "Approved by Financial Institution" // Success response message. } |
Sample Response (failure)
After transaction has been authorized with otp, the expected failure response is similar to this if any.
1 2 3 4 5 6 7 8 9 |
{ "errors": [ { "code": "Z5", // Error code. "message": "PAYMENT_ALREADY_PROCESSED" // Error message. } ], "paymentId": "66599" // Payment Identifier. } |