Create credit card from a form

How do I add a credit card to an existing client from a custom registration form?

The idea is to use PHP to post the credit card data to Square and other data to my own database. Is that even possible? All I have found is a form to make payments, not to create a credit card.


With Square the Web Payments SDK is used to tokenize the card. With the returned token you can either charge the card or save the card on file with the Cards API. You’ll first need to tokenize the card then with the returned token you’ll call CreateCard to store the card on file. :slightly_smiling_face: