JSON Object

externalPaymentData

externalPaymentData

i This data elements is not EMV 3DS related, but returns additional data for authorization from external parties (e.g. acquirer / 3rd party processor).

This data element is only returned if request parameter msgver has been used.

It is currently supported for GICC and CB2A, only.

Data Elements

i Please note that all data elements listed below are optional in externalPaymentData – also the element externalPaymentData itself is optional.

KeyFormatCNDDescriptionPaygate legacy KVP
1externalApprovalCodestringOAcquiring Bank’s authorization code / 3rd party approval codeAID / ApprovalCode
2externalResponseCodestringO3rd party response codeCodeExt
3externalOriginalCodestringOIn case of credit card payments this represents Issuer/Scheme response codeOriginalCode
4externalResponseMessagestringO3rd party response messageErrorText
5externalOriginalMessagestringOIn case of credit card payments this represents Issuer/Scheme response messageOriginalExtended
6externalTransactionIDstringO3rd party transaction identifierTransactionID / GuWID
7externalTokenstringO3rd party tokenTokenExt
8externalMerchantIDstringO3rd party merchant identifierVU / VUNr
9externalTerminalIDstringO3rd party terminal identifierTID / TerminalID
10externalOrderIDstringO3rdparty order ID

Schema

{

    "$schema": "http://json-schema.org/draft-07/schema#",

    "$id": "BASEURL/resultsResponse.json",

    "type": "object",

    "properties": {

        "externalApprovalCode": {

            "type": "string"

        },

        "externalResponseCode": {

            "type": "string"

        },

        "externalOriginalCode": {

            "type": "string"

        },

        "externalResponseMessage": {

            "type": "string"

        },

        "externalOriginalMessage": {

            "type": "string"

        },

        "externalTransactionID": {

            "type": "string"

        },

        "externalToken": {

            "type": "string"

        },

        "externalMerchantID": {

            "type": "string"

        },

        "externalTerminalID": {

            "type": "string"

        },

        "externalOrderID": {

            "type": "string"

        }

    },

    "additionalProperties": false

}

Sample

Sample 1

received as

1externalpaymentdata=e30

and Base64-decoded as:

1{ }

Sample 2

received as

1externalpaymentdata=eyJleHRlcm5hbEFwcHJvdmFsQ29kZSI6IjE1OTA3OSIsImV4dGVybmFsUmVzcG9uc2VDb2RlIjoiMDAiLCJleHRlcm5hbE1lcmNoYW50SUQiOiI0MzY4MDk0IiwiZXh0ZXJuYWxUZXJtaW5hbElEIjoiNDM2ODA5NCJ9

and Base64-decoded as:

1{"externalApprovalCode":"159079","externalResponseCode":"00","externalMerchantID":"4368094","externalTerminalID":"4368094"}