The Kushki instance that was previously initialized.
The response object from the card tokenization process using the API.
cardTokenResponse.security is undefined then throw ERRORS.E012cardTokenResponse.security.authRequired is the only param in the security object then throw ERRORS.E012cardTokenResponse.security.specificationVersion is not valid then throw ERRORS.E012const kushkiInstance = await init({
inTest: true,
publicCredentialId: "merchantId"
});
const cardTokenResponse = {
token:"generated-token",
secureService: "secure-service-name",
secureId: "secure-id",
security: {
acsURL: "https://google.com",
authenticationTransactionId: "transactionId",
authRequired: true,
paReq: "jwt",
specificationVersion: "x.x.x"
}
};
try {
const tokenResponse = await validate3DS(kushkiInstance, cardTokenResponse);
console.log(tokenResponse);
} catch (error) {
console.log(error);
}
Generated using TypeDoc
Introduction
Function to validate 3DS fields from a token.