#jmillard
1 messages · Page 1 of 1 (latest)
hi! unfortunately that's really not a flow any of Stripe's integrations have good support for.
As you say, the server side confirmation beta for PaymentElement is the best bet and will eventually be where we'd try to solve for this. https://stripe.com/docs/payments/run-custom-actions-before-confirmation
For right now I generally just tell folks to use Checkout, or on a custom payment page to design it to fit the flow where you present the card information and "pay now" as part of the same form.
When you say 'beta', is it in a position to be used in a production environment?
yes, but you have to commit to changing it
as far as I know right now we don't accept new entries to that beta, and in 2023 we will release the feature publicly but it will look different to how it does in the beta
the only "real" solution otherwise here is to use the simple CardElement to create a PaymentMethod object, and then hold on to that PaymentMethod ID to pass to confirmCardPayment later, but that approach is not ideal for a few reasons
https://stripe.com/docs/payments/accept-a-payment-synchronously
Thanks mate. I think we will just need to have the payment as the final step of the flow. I looked at the downsides of the link you sent me and I would prefer a proper solution. Fingers crossed for the custom actions solution coming soon.
Very helpful thankyou!
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!