Is it possible to distinguish card payment / digital wallet payment from token

Dear Team,

Is it possible to distinguish card payment and digital wallet payment from the token generated by Square Web SDK?

Thanks.

:wave: 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

Square Developer
In-App Payments SDK: How It Works
Supported Payment Methods by Country

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.

Yes, it is possible to distinguish between card payments and digital wallet payments from the token generated by Square Web SDK. The token itself doesn’t directly indicate the payment method, but once a payment is made using this token, you can retrieve the payment details using the Payments API. The payment details include the source_type field which indicates the method of payment. This could be CARD, APPLE_PAY, or GOOGLE_PAY, allowing you to distinguish between card payments and digital wallet payments.

This answer was reviewed by @Bryan-Square.