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.
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:
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:
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.
{
"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