Hi there, I hope you’re well
I’ve followed this guide to enable SCA cards https://developer.squareup.com/docs/payment-form/cookbook/verify-buyer-on-card-charge . This works, and if I use a SCA test nonce, it triggers the SCA popup and the verification token & nonce from the JS code is POSTed to my server. Happy days!
Except for cards that don’t require SCA, the paymentForm.verifyBuyer(...)
callback is never run, so I never get a POST to the server - it either works with SCA cards only, or only works for non-SCA cards - is there an introspection method, i.e. paymentForm.buyerNeedsVerifcation()
for instance. I get a card nonce & card data for these test cards, but that verifyBuyer
callback is never made on your side.
So…
- Can I trigger different behaviour based on the payment flow requirements? All of my server callback & events occur inside
verifyBuyer
at the moment, as I must support SCA for all cards in the UK. - Will this code ‘just work’ in production? As in, for a card from the USA that doesn’t need SCA, will the
verifyBuyer
callback happen with a happy verification token like it does when it passes verification?
I’m worried as I can’t test either of these scenarios in sandbox
Many thanks in advance
Andy.