How can I somehow obtain an example of an Apple Pay Payment Token (as described here) without actually requesting a payment from Apple using an Apple Device?
I am creating an endpoint that will accept the Apple Pay payment token exactly as it is received on the device requesting payment from Apple. However, it is a binary data and it will thus have to be decoded into what I assume is a normal json object. What would the format/structure of this json object be?
From Checkout.com's documentation on Apple Pay (here) I would assume the decoded json object looks something like this (although they mark it as an "example", so I can't be sure):
{
"type": "applepay",
"token_data": {
"version": "EC_v1",
"data": "t7GeajLB9skXB...",
"signature": "MIAGCSqGSIb3DQEHAq...",
"header": {
"ephemeralPublicKey": "MFkwEwYHKoZIzj...",
"publicKeyHash": "tqYV+tmG9aMh+l/K6cicU...",
"transactionId": "3cee89679130a4b2617c..."
}
}
}
Note that the data in the fields above were shortened for brevity.
What is the exact object/data that Apple sends the device requesting payment?
Any help would be greatly appreciated!