- gurustu_Asked on December 21, 2017 at 12:29 PM
We have a form using Stripe to process payments. Whenever an incorrect card number is entered, an error message pops up and the form is not submitted. However if an incorrect CVC or expiration date is entered, the form submits, you're notified that the info is incorrect (attached screenshot), and the payment attempts to go through.
Is there a way for the form to validate the CVC and expiration date before the form submits, the same way it does when an incorrect card number is entered?
With the current setup, if users enter an incorrect CVC, they receive a pending charge, have to refresh the page, and fill out the entire for again with the correct info.Page URL:
- JotForm SupportKevin_GAnswered on December 21, 2017 at 01:24 PM
I think the credit card number validation is performed before to submit the form since it only evaluates its digits, for example, numbers and pattern, the integration evaluates if the entered card number is not a testing one from a base of existing testing cards.
Now, with the security code the thing is different, the code can be validated until the payment is processed since if it's correct the payment will go through, otherwise it will throw an error, I think that's the main reason why the security code number validation cannot be performed before to submit the form (I think that basically it would be necessary to have a database with all the security codes just to compare the entered one), currently it will only validate the format (the same as credit card, pattern, length, numbers only and so on).
But, I will forward this thread to our second level in order to know if this can be changed, although we cannot provide an ETA, we will keep you updated via this thread.
- omurAnswered on January 10, 2018 at 06:22 AM
As my colleague Kevin has mentioned, the CVV and the expiration date can only be validated when the payment is being made.
For this reason, it is not possible to do it before the submission.