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!
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
Save a Card on File
In-App Payments SDK Quickstart
In-App Payments SDK Quickstart
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, 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.
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.
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.
That’s cool. Thank you @Bryan-Square