Prepopulate existing cards on square hosted checkout page

I have user’s credit cards stored in my db. How can i prepopulate these cards when i navigate the user to quick checkout page.
Thanks in advance. :slight_smile:

HI @saitejasuggala ,

I would need more clarification about what you mean by you have the credit cards stored on your database. And clarification on what you mean by Square hosted checkout

To help developers and merchant be PII compliant, Square will obfuscate data and store it on our own databases, so that developers can just make an API call to get sensitive information.

For cards on file, we have a Cards API. Not sure if you were referring to storing the Square customer id and card ids on your database, which is fine PII compliance wise.

And when you say Square hosted Checkout page, do you mean the Checkout API (technical), the Web Payments SDK, the Square Online Checkout Links from Seller Dashboard, or Square Online?

If you can help give me some context, I can help suggest how you might be able to do something along the lines of pre-populating the cards on file.