Method: payment-integrator-authenticated-card-fop-api.verifyOtp

Verifies the user provided OTP to determine if it matches what the issuer sent. If it matches then the authentication is considered successful.

HTTP request

POST https://www.integratordomain.com/v1/payment-integrator-authenticated-card-fop-api/verifyOtp

Request body

The request body contains data with the following structure:

JSON representation
{
  "requestHeader": {
    object (RequestHeader)
  },
  "authenticateRequestId": string,
  "otp": string
}
Fields
requestHeader

object (RequestHeader)

REQUIRED: Common header for all requests.

authenticateRequestId

string

REQUIRED: requestId from the authenticate request that preceded this call.

otp

string

REQUIRED: This is the OTP the user provided, which this call is verifying

Response body

If successful, the response body contains data with the following structure:

Response object for the verifyOtp method.

JSON representation
{
  "responseHeader": {
    object (ResponseHeader)
  },
  "paymentIntegratorVerifyOtpId": string,
  "result": enum (VerifyOtpResultCode)
}
Fields
responseHeader

object (ResponseHeader)

REQUIRED: Common header for all responses.

paymentIntegratorVerifyOtpId

string

OPTIONAL: Identifier the payment integrator generates and uses to identify this request.

result

enum (VerifyOtpResultCode)

REQUIRED: Result of this request

VerifyOtpResultCode

Result codes for verifyOtp.

Enums
UNKNOWN_RESULT Do not ever set this default value!
SUCCESS OTP matched what the integrator sent
OTP_NOT_MATCHED OTP did not match what the integrator sent.
OTP_ALREADY_USED OTP was already used.