I’ve updated my code to use the new beta CHARGE_AND_STORE intent to charge and store a card. However, I cannot see how I would then make a charge to the stored card, triggering SCA if required? Previously we would present the user with their saved card which they could choose to select, then we’d call payments.verifyBuyer() passing in the saved card, triggering the SCA flow and getting the token. As that method is being deprecated, how would we trigger this using a saved card? The only way I can see if the docs is using the “card” UI element, but that would require them typing their card number in again and being far less convenient.
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
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.
Here’s the link to our example on how to charge a card on file with the new flow. Verification details are still passed into the tokenize()
call.