Verifies the user provided OTP to determine if it matches what the issuer sent. If it matches then the authentication is considered successful.
If the endpoint encounters an error while processing the request, the response body from this endpoint should be of type
.ErrorResponse
An example request looks like:
{
"requestHeader": {
"protocolVersion": {
"major": 1
},
"requestId": "cmVxdWVzdDE",
"requestTimestamp": {
"epochMillis": "1481899949606"
},
"paymentIntegratorAccountId": "SpeedyPaymentsIndia_INR"
},
"authenticateRequestId": "G112YZH4XPDV88J",
"otp": "123456"
}
An example response looks like:
{
"responseHeader": {
"responseTimestamp": {
"epochMillis": "1481899949611"
}
},
"eci": "07",
"result": {
"success": {}
}
}
HTTP request
POST https://www.integratorhost.example.com/integrator-base-path/v1/payment-integrator-authenticated-card-fop-api/verifyOtp
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requestHeader": {
object ( |
Fields | |
---|---|
request |
REQUIRED: Common header for all requests. |
authenticate |
REQUIRED: |
otp |
REQUIRED: This is the OTP the user provided, which this call is verifying |
Response body
This method supports multiple return types. For additional information about what 4XX or 5XX HTTP status code to return with an ErrorResponse
, consult the ErrorResponse
object and HTTP status codes documentation.
Possible response messages | |
---|---|
HTTP 200 Status |
|
HTTP 4XX / 5XX Status |
|
VerifyOtpResponse
Response object for the verifyOtp
method.
JSON representation |
---|
{ "responseHeader": { object ( |
Fields | |
---|---|
response |
REQUIRED: Common header for all responses. |
payment |
OPTIONAL: Identifier the payment integrator generates and uses to identify this request. |
eci |
OPTIONAL: The Electronic Commerce Indicator returned for the request. It should be returned if available. |
result |
REQUIRED: Result of this request |
VerifyOtpResultCode
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field verify_otp_result_code . Result codes for verifyOtp . verify_otp_result_code can be only one of the following: |
|
success |
OTP matched what the integrator sent |
otp |
OTP did not match what the integrator sent. |
otp |
OTP was already used. |