Add basic SCA support
This release adds support for SCA returning a verificationToken
as part of the handleCardNonceResponse
callback when you provide a createVerificationDetails
function to the SquarePaymentForm
component.
The createVerificationDetails
function should create an SqVerificationDetails
object described in the SqPaymentForm reference.
Then, you can pass it to the component:
You'll then be able to access the verificationToken
as the last parameter in handleCardNonceResponse
:
handleCardNonceResponse(
errors,
nonce,
cardData,
billingContact,
shippingContact,
shippingOption,
verificationToken
) {
}