#KrisK
1 messages · Page 1 of 1 (latest)
What exactly do you mean by 'validate the Stripe form'? What function are you executing?
so I have a payment page with my form about a customer, address etc. on the same page is your stripe elements form. When customer clicks submit, first Id like to send stripe details and valiedate if payment will go thru, if yes then proccess some actions on the server, and then process a payment
You mean to check if the payment details are valid, etc?
yes
Then you should use a Setup Intent initially if there's no initial payment: https://stripe.com/docs/payments/save-and-reuse
Once that is successful, and the card is 'verified', you can re-use that payment method to process the follow-up payment(s): https://stripe.com/docs/payments/save-and-reuse?platform=web#charge-saved-payment-method
the same process if the validation and payment is just couple seconds later?
Yep, exactly. You shouldn't use a payment to verify a card: https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
The only other way to send those card details to the card networks is via a Setup Intent
Otherwise the client-side JS from the payment form is just doing basic tokenisation checks (luhn, is a future expiry date, etc)
thanks a lot. no more questions.