Hey guys.
I'm creating my first Plugin. I want it to validate that SSN is correct. In this case, I want to validate if the CPF is correct (CPF is the same as the SSN - however, in Brazil).
On customer creation (table:gbrmad_cliente) I want to validate column gbrmad_strcpf
I believe I created the correct logic with REGEX, however, how do I go about creating the registration, after validating? Considering that it will be a new customer (with all data such as: Name and Address)?
Thanks!
Below is the code

Code available here: https://github.com/GabrielPoppes/Treinamento/blob/master/ValidacaoCPF/ValidarCPF.cs