7. Establish Account Connectione

This service should be used for the relevant user to grant your company authorization for Masterpass.

Establish Account Connection

POST {{Base Address}}/api/paywall/masterpass/merchant/link

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 - Establish Account Connection 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

SessionId

Guid

Yes

Session ID information

{
    "SessionId": "2193433e-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 > ResponseCodeThe 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": "b827433e-f36b-1410-80e5-004205aa382d"
        },
        "Masterpass": {
            "Result": {
                "RetrievalReferenceNumber": "100005844117",
                "ResponseCode": "5001",
                "Description": "Telefonunuza gelen tek kullanımlık şifreyi girerek kart doğrulama işlemini tamamlayınız",
                "Token": "c0645409b83f4344bf588ef4142559a9",
                "CardIssuerName": "Akbank",
                "MaskedPan": "************0016"
            },
            "BuildId": "83",
            "CorrelationId": "261efc9a-7296-42ef-b5b7-0ee0ca512e6b",
            "Exception": null,
            "Message": "Accepted",
            "RequestId": null,
            "StatusCode": 202,
            "Version": null
        }
    }
}

Last updated