# How to save the credit cards in mobile application using SDK, is that possible?

**URL:** <https://developer.squareup.com/forums/t/how-to-save-the-credit-cards-in-mobile-application-using-sdk-is-that-possible/19068>\
**Category:** Questions\
**Tags:** in-app-payments-sdk\
**Created:** [October 7, 2024, 1:51pm UTC](https://developer.squareup.com/forums/t/how-to-save-the-credit-cards-in-mobile-application-using-sdk-is-that-possible/19068 "2024-10-07T13:51:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![guganmohan](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/guganmohan/32/7652_2.png) [@guganmohan](https://developer.squareup.com/forums/u/guganmohan)\
**Post date:** [October 7, 2024, 1:51pm UTC](https://developer.squareup.com/forums/t/how-to-save-the-credit-cards-in-mobile-application-using-sdk-is-that-possible/19068/1 "2024-10-07T13:51:02Z")

</div>

Hi All,  
In my food ordering application, I would need to show the list of saved credit cards to the end user so is that possible using square mobile in-app SDK (or) is that possible via API? Kindly share your insight!

---

<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:** [October 7, 2024, 1:51pm UTC](https://developer.squareup.com/forums/t/how-to-save-the-credit-cards-in-mobile-application-using-sdk-is-that-possible/19068/2 "2024-10-07T13:51:45Z")

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

> **[Cards API](https://developer.squareup.com/docs/cards-api/overview)**
>
> Use the Cards API to save a credit or debit card for a customer.

> **[Cards API](https://developer.squareup.com/docs/cards-api)**
>
> Use the Cards API to save a credit or debit card for a customer.

> **Additional Documentation**
>
> [Save a Card on File](https://developer.squareup.com/docs/reader-sdk/cookbook/save-cards-on-file)  
> [In-App Payments SDK Quickstart](https://developer.squareup.com/docs/in-app-payments-sdk/quick-start)  
> [In-App Payments SDK Quickstart](https://developer.squareup.com/docs/in-app-payments-sdk/quick-start/start)

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:** ![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:** [October 7, 2024, 5:52pm UTC](https://developer.squareup.com/forums/t/how-to-save-the-credit-cards-in-mobile-application-using-sdk-is-that-possible/19068/3 "2024-10-07T17:52:56Z")

</div>

Yes, you can manage and retrieve cards on file for a customer using Square’s Cards API. The ListCards endpoint can be used to get a list of cards on file for a specific customer. However, please note that for security reasons, the full card number is not returned in the response. Only the last four digits and the card brand are provided. Also, always remember to obtain customer permission before saving their card information.

_This answer was reviewed by @Bryan-Square._

---

<div class="post-metadata">

**Author:** ![guganmohan](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/guganmohan/32/7652_2.png) [@guganmohan](https://developer.squareup.com/forums/u/guganmohan)\
**Post date:** [October 8, 2024, 11:18am UTC](https://developer.squareup.com/forums/t/how-to-save-the-credit-cards-in-mobile-application-using-sdk-is-that-possible/19068/4 "2024-10-08T11:18:12Z")

</div>

Hey, Thank! that looks great, how long the nonce token is valid? is there any expiration time for token? Could you please tell me how long the Card on file token / nonce token is valid.

---

<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:** [October 8, 2024, 4:17pm UTC](https://developer.squareup.com/forums/t/how-to-save-the-credit-cards-in-mobile-application-using-sdk-is-that-possible/19068/5 "2024-10-08T16:17:41Z")

</div>

The nonce is valid for 24 hours. A card on file won’t expire until the expiration date or the customer cancels the card. Also if the customer re-news the card often we will get an update from the card company so you can continue to use the same card\_id without any disruption. 🙂

---

<div class="post-metadata">

**Author:** ![guganmohan](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/guganmohan/32/7652_2.png) [@guganmohan](https://developer.squareup.com/forums/u/guganmohan)\
**Post date:** [October 21, 2024, 10:38am UTC](https://developer.squareup.com/forums/t/how-to-save-the-credit-cards-in-mobile-application-using-sdk-is-that-possible/19068/6 "2024-10-21T10:38:50Z")

</div>

> [@Bryan-Square](#):
>
> Also if the customer re-news the card often we will get an update from the card company so you

That’s cool. Thank you @Bryan-Square
