adyen-web icon indicating copy to clipboard operation
adyen-web copied to clipboard

Masks for Brazilian SSN (CPF and CNPJ) fields

Open flaviosantos-dev opened this issue 2 years ago • 1 comments

Describe the bug In the last step, when we have to fill the ssn field with brazilian CPF or CNPJ, the field is not masked. Even if correctly filled by user, with no mask, the validator rejects because of format, with no dots or slashes. If user inserts the mask manually, everything goes well.

To Reproduce Steps to reproduce the behavior:

In the last step of checkout, choose the 'boleto' option; Fill in the 'CPF/CNPJ' field with a valid CPF or CNPJ; Place Order; Expected Behavior Order placed with success

Screenshots

image Valid CNPJ being rejected because has no mask.

Additional context We need only apply the mask, to the entered number 12345678912 become 123.456.789-12 (for CNPJ) or the number 12345678123456 become 12.345.678/1234-56, for example. The Module already has further validation for authenticity of this data.

flaviosantos-dev avatar Sep 15 '22 10:09 flaviosantos-dev

Hey @flaviosans ,

Which version of adyen-web SDK is this?

The screenshot that you attached doesn't look like it is from our SDK. Our checkout isn't multi-step, and also we provide validation for the CPF field. You can check it out on our demo store by selecting Brazil as country.

ribeiroguilherme avatar Sep 15 '22 14:09 ribeiroguilherme

Closing this issue for now due to its inactivity and as it seems to not be related to our SDK.

ribeiroguilherme avatar Oct 04 '22 11:10 ribeiroguilherme