I would like to be able to allow clients to save their cards for recurring invoices and make the first payment at the same time. I am able to either "STORE" or "CHARGE" a card using SqPaymentForm and calling .verifyBuyer, but when I store a card, the payment step then errors out with a message "Payment Required" and CARD_DECLINED_VERIFICATION_REQUIRED. I thought this was because the verification token could only be used for one intent but I am able to call .verifyBuyer a second time within the callback and get a new token but this also errors out. Is there any way to store a card on file and complete a payment using SqPaymentForm?
Thanks for your help
Hi @Dubsado,
Welcome to the Seller Community!
We ran this by our API folks and it sounds like you're on track. You can only use a verification_token once. So, you'll need to call verifyBuyer to get a token to store the card on file, and then call verifyBuyer again to get a new token to charge the card on file. You probably should not call verifyBuyer from within the callback of the original call to verifyBuyer. To be sure we're on the same page—can you let us know exactly which error you're receiving on the second call?
We'll keep watch for your reply.
Square Community
Square Products