Payment Instrument Tokenization
Get Apple Pay token metadata
Apple Pay tokens contain encrypted data that only BR-DGE can decrypt. This endpoint lets you access that previously encrypted data, along with Bank Identifier Number (BIN) lookup data derived from the decrypted Apple Pay DPAN. This is particularly useful for performing your own pre-payment checks.
post/payment-instruments/apple-pay/query
Request
- Base URLhttps://sandbox.comcarde.com/v1
- URLhttps://sandbox.comcarde.com/v1/payment-instruments/apple-pay/query
- AuthHTTP bearer
Request body
Example request
{
"token": "BR#00000000-0000-0000-0000-000000000000"
}Response
Successful retrieval of Apple Pay details
Example response
{
"metadata": {
"cardBrand": "MASTERCARD",
"category": "CLASSIC",
"countryIsoA2": "GB",
"commercial": true,
"bin": "48321456"
},
"expiryDate": "05-25",
"fingerprint": "63c8563d876b993878e1b5506b5fc5826e9e46266daaadac018a71ed307748c6",
"decryptedPayload": {
"applicationPrimaryAccountNumber": "4818528840216497",
"applicationExpirationDate": "281231",
"currencyCode": "826",
"transactionAmount": 100,
"cardholderName": "John Smith",
"deviceManufacturerIdentifier": "040010030273",
"paymentDataType": "3DSecure",
"paymentData": {
"eciIndicator": 7
},
"transactionId": "31675461ec268fed0ca9699e632753447d1a1de0aa65170e049033d7a801d3f3"
},
"paymentMethod": {
"displayName": "MasterCard 0839",
"network": "MasterCard",
"type": "credit"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.