Mastercard / mastercard-api-client-tutorial

Generating and Configuring a Mastercard API Client
https://mstr.cd/2AWz6pm
MIT License
60 stars 61 forks source link

Fix "INVALID_PAN" error #27

Closed jaaufauvre closed 3 years ago

jaaufauvre commented 3 years ago

Fixes the following error:

{
    "errorCode": "INVALID_PAN",
    "errorDescription": "Invalid PAN",
    "errors": [
        {
            "source": "INPUT",
            "reasonCode": "INVALID_PAN",
            "description": "Invalid PAN"
        }
    ],
    "responseId": "123456",
    "tokenDetail": {
        "tokenUniqueReference": "DWSPMC000000000132d72d4fcb2f4136a0532d3093ff1a45",
        "encryptedData": {
            "tokenNumber": null,
            "expiryMonth": null,
            "expiryYear": null,
            "paymentAccountReference": "500181d9f8e0629211e3949a08002",
            "dataValidUntilTimestamp": null,
            "accountHolderData": null,
            "cardAccountData": null
        }
    },
    "supportsAuthentication": false
}