I integrate take a card payment with web SDK in my project.
I changed card and browser and billing information but tokenize() return same source id.
what is issue?
please check my question carefully.
const tokenResult = await card.tokenize(verificationDetails);
if (tokenResult.status === 'OK') {
return tokenResult.token;
} else {
let errorMessage = `Tokenization failed-status: ${tokenResult.status}`;
if (tokenResult.errors) {
errorMessage += ` and errors: ${JSON.stringify(
tokenResult.errors
)}`;
}
throw new Error(errorMessage);
}
Despite the changed verificationDetails, tokenResult.token is the same.
Square Community
Square Products