#lolo75 - Elements
1 messages · Page 1 of 1 (latest)
Hello
What do you mean by "preauth"?
You mean hold funds on the card before capturing the funds? That's possible with Stripe Element.
Exactly !
Use capture_method: 'manual' when creating the PaymentIntent, then collect the payment information with Element, and later capture the funds with https://stripe.com/docs/api/payment_intents/capture
You can learn more about this here: https://stripe.com/docs/payments/place-a-hold-on-a-payment-method
Perfect, the dev was done 🙂
What about having the payment_method before the confirmation of the payment ?
The use case: 1. Initiate the pm with element 2. Validate the pm (expiration date, branding, blacklisting ...) 3. Confirm the payment
=> Validation process outside stripe
What's the question exactly? I'm not sure I understand.
How can I have business logic on payment_method before confirming payment with stripe elements?
I have the answer https://stripe.com/docs/payments/run-custom-actions-before-confirmation
Sorry for the delay, but I'm glad that you found the answer to your question!