Issue with credit card validation |
Hi! I have this validation rule:
Code: 'cardNumber' => [ and I have this error: Code: Validation.valid_cc_number Why? Thanks for help me.
Issue about what translation? I have uploaded the system translation for the languages that i use and the error is the result of $this->validation->listError.
What can i try to do? I read about an issue with valid_cc_number[] validation rule. Is possible this in the latest version of codeigniter?
Usually payment gateways provide an iframe or routed payment screen and they take care of everything including security. So, first of all, is it really safe to handle the payment processing and verification check on your own? Because this is a critical process.
The language string for credit card validation is:
PHP Code: // Credit Cards (05-16-2024, 12:24 PM)demyr Wrote: Usually payment gateways provide an iframe or routed payment screen and they take care of everything including security. So, first of all, is it really safe to handle the payment processing and verification check on your own? Because this is a critical process. Is not a payment process ma only a booking form where the customer add his credit card for reserve a stay. For example a CVV code is not required. (05-16-2024, 11:43 PM)JustJohnQ Wrote: The language string for credit card validation is: In /system/Language/it/Validation.php the string is correct. Is perfectly like your code. (05-17-2024, 02:29 AM)JustJohnQ Wrote: Did you add 'valid_cc_number' yourself? In the language file (/system/Language/en/Validation.php) the string is: Code: 'valid_cc_num' => '{field} does not appear to be a valid credit card number.', BUT the issue is when in the validation rule I add more credit cards: Code: 'cardNumber' => [ For example, if I remove Visa the validation works fine. EDIT (new test): If I use this code: Code: 'cardNumber' => [ but inside the input insert the Mastercard number I have the same error. Code: Validation.valid_cc_number I found this: https://forum.codeigniter.com/thread-79357.html but is not a good solution for the user experience. |
Welcome Guest, Not a member yet? Register Sign In |