# How mobile pay (e.g., Apple Pay, Google Pay, Samsung Pay, etc.) are saved/treated in Payments API

**URL:** <https://developer.squareup.com/forums/t/how-mobile-pay-e-g-apple-pay-google-pay-samsung-pay-etc-are-saved-treated-in-payments-api/11650>\
**Category:** Questions\
**Tags:** payments-api\
**Created:** [December 22, 2023, 11:46pm UTC](https://developer.squareup.com/forums/t/how-mobile-pay-e-g-apple-pay-google-pay-samsung-pay-etc-are-saved-treated-in-payments-api/11650 "2023-12-22T23:46:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neutronsta](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@Neutronsta](https://developer.squareup.com/forums/u/Neutronsta)\
**Post date:** [December 22, 2023, 11:46pm UTC](https://developer.squareup.com/forums/t/how-mobile-pay-e-g-apple-pay-google-pay-samsung-pay-etc-are-saved-treated-in-payments-api/11650/1 "2023-12-22T23:46:39Z")

</div>

Hi!  
We are developing an application that can identify those payments made by our user’s card (and mobile pay) at our partner store’s Square account. We are using the Payments API. And we figured out a way to match payment histories matching our user’s card number. However, since lots of people pay with their mobile devices, we are wondering how the mobile payments are treated in Square’s API. For example, if someone uses Apple Card through Apple Pay at Square store, does that also count as “Card payment”? Or do we need to look at other attributes in this case? In other words, what is the “source type” for those mobile pays such as Apple Pay, Google Pay, and Samsung Pay. I would appreciate it for your answer. Thank you!

Best, Ryan  
are wondering

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [December 22, 2023, 11:46pm UTC](https://developer.squareup.com/forums/t/how-mobile-pay-e-g-apple-pay-google-pay-samsung-pay-etc-are-saved-treated-in-payments-api/11650/2 "2023-12-22T23:46:51Z")

</div>

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

> **[Payment APIs](https://developer.squareup.com/docs/payments)**
>
> Process online, in-app, and in-person payments with Square payment APIs. Manage disputes and subscriptions and perform other payment-related tasks.

> **[In-App Payments SDK: How It Works](https://developer.squareup.com/docs/in-app-payments-sdk/how-it-works)**
>
> Learn more about processing mobile payments with the Square In-App Payments SDK.

> **Additional Documentation**
>
> [In-App Payment Solutions](https://developer.squareup.com/docs/in-app-payments)  
> [Supported Payment Methods by Country](https://developer.squareup.com/docs/payment-card-support-by-country)  
> [In-App Payments SDK Overview](https://developer.squareup.com/docs/in-app-payments-sdk/what-it-does)

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.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [December 23, 2023, 6:31pm UTC](https://developer.squareup.com/forums/t/how-mobile-pay-e-g-apple-pay-google-pay-samsung-pay-etc-are-saved-treated-in-payments-api/11650/3 "2023-12-23T18:31:58Z")

</div>

When you get the payment from the Payments API the [entry\_method](https://developer.squareup.com/reference/square/objects/CardPaymentDetails#definition__property-entry_method) will let you know if it was a digital wallet payment because it will have an entry\_method of `CONTACTLESS`. 🙂

---

<div class="post-metadata">

**Author:** ![Neutronsta](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@Neutronsta](https://developer.squareup.com/forums/u/Neutronsta)\
**Post date:** [December 23, 2023, 10:01pm UTC](https://developer.squareup.com/forums/t/how-mobile-pay-e-g-apple-pay-google-pay-samsung-pay-etc-are-saved-treated-in-payments-api/11650/4 "2023-12-23T22:01:30Z")

</div>

I see. But, can we still know the card number used for that payment? Like, if the consumer saved a Chase credit card in their mobile device and used an Apple Pay, can I access the last 4 digits of that credit card used by using your Payments API? Also, if the consumer used an Apple Card in their Apple Pay, can we know the last 4 digits of that Apple Card used for that transaction by checking your Payments API?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [December 23, 2023, 10:07pm UTC](https://developer.squareup.com/forums/t/how-mobile-pay-e-g-apple-pay-google-pay-samsung-pay-etc-are-saved-treated-in-payments-api/11650/5 "2023-12-23T22:07:03Z")

</div>

The Payments API will return the `last_4` that the digital wallet provides Square when processing the payment. 🙂
