Square Checkout & Card On File

Hi there!

We are using Square Checkout to charge clients, and we would like to allow them to save their credit cards on file for future purchases. I am aware that this is not supported via the Square Checkout API, But I’d like to know if there is a way to retrieve the payment method they paid with after the payment is complete, and attach it to their account, or any other workaround we haven’t thought of.

Thanks a lot!

Hi @hananf welcome to the forums!

Unfortunately, there is not a way to attach a customer to a payment after the payment has been completed at this time. The only way would be to build out the Square Payment Form to generate a secure nonce, and use that to save the customer’s card on file.

can you say more about the Square Payment Form @sjosey?

how’d you end up solving things @hananf ?

This is now available. You can store a card on file with a payment_id. For more here is our documentation on storing a card on file from a payment.

Also please note that the SqPaymentForm is retired and the supported method for tokenizing a card is with the Web Payments SDK. :slightly_smiling_face: