6. Resend OTP

You can use this service to resend the Masterpass OTP.

Resend OTP

POST {{Base Address}}/api/paywall/masterpass/otp/resend

It will be sufficient to send a request to the address provided above. You can use the 'Base Address' for both the Test environment and the Production environment as you wish.

Important: To use the Masterpass - Resend OTP service, you must include the parameters 'apikeyprivate' and 'apiclientprivate' in the 'Header' field. PaymentAPI Address

Parameter
Type
Mondatory
Description

apikeyprivate

string

Yes

The Private Key obtained from the merchant panel.

apiclientprivate

string

Yes

The Private Client obtained from the merchant panel.

The parameters that need to be sent to the service are as follows:

Parameter
Type
Mondatory
Description

OtpToken

string

Yes

During the transaction requiring OTP, it is included in the API response parameters: Masterpass > Result > Token

SessionId

Guid

Yes

Oturum Kimliği bilgisi

{
    "OtpToken": "67a40b720d564a878dd46579b3d2eff3",
    "SessionId": "6489433e-f36b-1410-825e-001264113a90"
}

Response returned from the service:

Parameter
Type
Description

Body

object

JSON containing payment details (optional)

ErrorCode

int

Error code. Returns '0' if the transaction is successful.

Result

bool

Returns either true or false. If the transaction is successful, it returns true.

Message

string

If the transaction fails, this is the error message provided, with language support according to the locale parameter.

Body > Masterpass > Result > StatusCode ve Body > Masterpass > Result > ResponseCode The flow must be established by checking the parameter under the directory.

  • Masterpass ResponseCode List

{
    "ErrorCodeType": 1,
    "ErrorMessage": null,
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "Session": {
            "SessionRenewed": false,
            "SessionId": "a527433e-f36b-1410-80e5-004205aa382d"
        },
        "Masterpass": {
            "Result": {
                "Token": "b1b9baa4018d4f17b1fd85592344b09a",
                "RetrievalReferenceNumber": "100005844114",
                "ResponseCode": "5001",
                "Description": "Telefonunuza gelen tek kullanımlık şifreyi girerek kart doğrulama işlemini tamamlayınız"
            },
            "BuildId": "78",
            "CorrelationId": "a38a5866-1688-4ae8-99b5-d3956d2e2e4c",
            "Exception": null,
            "Message": "OK",
            "RequestId": null,
            "StatusCode": 200,
            "Version": null
        }
    }
}

Last updated