DNI as mandatory API field for Argentina

To be in compliance with the local requirements of our partners, from 03/07/2023 personal identifiers (DNI) will be mandatory and will be validated before processing the payment. Customers in countries other than Brazil are not affected by this change.

Photo by [Wikipedia](https://es.wikipedia.org/wiki/Documento_nacional_de_identidad_(Argentina)#/media/Archivo:DNIArg-anv-wikipedia.jpg)

Photo by Wikipedia

The DNI is an identification document used in Argentina. The DNI number is a unique identification code assigned to each individual. It can be submitted in two formats, depending on the customers:

  • Without Dots: The DNI number can be represented as a continuous string of eight numeric digits without any additional characters or separators. For example, "00000000". When entering the DNI number in a payment form, ensure that only the eight digits are included, without spaces, dashes, or dots.
  • With Dots: The DNI number can also be formatted with three sets of two digits separated by dots. For example, "00.000.000". When entering the DNI number in a payment form, allow for the inclusion of dots as separators while validating that it contains exactly eight digits overall.

When processing payments, it's crucial to validate the entered DNI number to ensure accuracy. Regardless of the format used (with or without dots), the DNI number should contain a total of eight digits. Implement a validation mechanism that removes any spaces, or other non-numeric characters before verifying the length of the number.

By considering both formats, with and without dots, this revised explanation provides the necessary guidance for payment form management and data entry tasks related to the Argentinean DNI, ensuring accurate handling of the DNI number.