4. Delete Card

You can use this service to delete your user's card from Masterpass.

Add Card

DELETE {{Base Address}}/api/paywall/masterpass/card/delete

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 - Delete Card 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
Mondotory
Description

CardAlias

string

Yes

The value returned from the card listing service.

SessionId

Guid

Yes

Session ID information

{
    "CardAlias": "85a142b9-736b-4232-bd9e-647e3cfd1b56",
    "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 dizini altındaki parametre kontrol edilerek akış kurulmalıdır

  • Masterpass ResponseCode List

{
    "ErrorCodeType": 1,
    "ErrorMessage": null,
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "Session": {
            "SessionRenewed": false,
            "SessionId": "a327433e-f36b-1410-80e5-004205aa382d"
        },
        "Masterpass": {
            "Result": {
                "ClientId": "34878516",
                "RefNo": "100005844111"
            },
            "BuildId": "83",
            "CorrelationId": "6853867a-dc35-4db1-83c6-870e3c5428b5",
            "Exception": null,
            "Message": "OK",
            "RequestId": null,
            "StatusCode": 200,
            "Version": null
        }
    }
}

Last updated