I am trying to implement payment module in my website using stripe gateway. But I did not use the build-in checkout form [With Elements (Stripe.js v3)] that stripe provides where stripe does all validation for us. Instead, I am trying to create a custom payment form. I have shared my code below.
Can anyone help me in validating the payment form I have created (Validation should be the same as what stripe does in build-in checkout form) and explain this also: https://stripe.com/docs/checkout#integration-custom
With stripe.js v3 , we can customize payment form and its validation?
I like to validate name filed, postalcode field, email and card number and its corresponding CVV with client side code(js).