Adyen / adyen-magento2

Adyen Payment plugin for Magento2
MIT License
155 stars 210 forks source link

Masks for Brazilian SSN (CPF and CPNJ) are missing #1696

Closed flaviosantos-dev closed 2 years ago

flaviosantos-dev commented 2 years ago

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:

  1. In the last step of checkout, choose the 'boleto' option;
  2. Fill in the 'CPF/CNPJ' field with a valid CPF or CNPJ;
  3. 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.

Morerice commented 2 years ago

Hi @flaviosans,

Thanks for opening this issue. Unfortunately the Adyen Magento 2 Module is not responsible for the validation in the checkout page. The module utilizes the web component for this functionality. This web component is then included into the module.

Could you please redirect your question to this repository? Please also include the version of the component you are utilizing. You can obtain this version, by first checking the version of your Magento 2 Module and then checking our releases page to identify which component version is utilized by the aforementioned module version.

Thanks, Jean Adyen