Foro
Catch error on web checkout tokenizer
I'm testing the web checkout tokenizer with the card number 4311 0000 0000 0000. Nothing happens after I click the continue button. Checking in the developer console on chrome I get a 422 error code and checking the answer of the tokens endpoint i get this
{
"object": "error",
"type": "parameter_validation_error",
"message": "Some of the card information is invalid. Please review the information and try again.",
"message_to_purchaser": "Alguno de los datos de la tarjeta es inválido. Revisa la información y vuelve a intentarlo.",
"param": "card[card[number]]",
"code": "invalid_number",
"validation_error": null
}
But I'm trying to get this error message in the onCreateTokenError event of the web tokenizer with no luck. This information can be read in this event or how can i get this info in code?