Questions about Apple Pay and Webhooks

Is there anyway to see which Apple Payment Token was used for a given transaction/payment via API? The webhook produces the card bin and last four of the payment, as well as the payment_reference_id ; I’m just trying to see which of these values I can used to map back to what was produced by the Apple system.

Docs I’m looking at: Take an Apple Pay Payment and also the webhook reference docs!

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Payments API Webhooks
Refunds API Webhooks
Test in the Sandbox

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

Unfortunately, the Square APIs do not provide a way to directly retrieve the Apple Payment Token used for a given transaction or payment. The webhook events and API responses typically include details such as the card brand, card bin, and last four digits of the card number, but they do not expose the Apple Payment Token itself. This is likely due to security and privacy considerations, as the token is meant to be a secure representation of the payment method. You can use the card bin and last four digits to identify the card used, but not the specific Apple Payment Token.

This answer was reviewed by @Bryan-Square.

Hello,

Thanks for the information keep sharing such informative.

Best Regard,
angela

PerYourHealth