#harefx.dev-PaymentIntent
1 messages · Page 1 of 1 (latest)
Now with confirm = false, I'm following this flow: Create Payment Intent (BE) -> Generate PaymentElement (FE) -> Confirm Payment
This is correct and recommended
Creating a PaymentIntent with confirm=true, meaning you want to both creating and confirming at the same time, hence require a PaymentMethod (a Payment Method is required anyway when you want to confirm)
it's used in this flow (https://stripe.com/docs/payments/accept-a-payment-synchronously?platform=web) which is not recommended
That way you create collect Card Information beforehand, then pass to server and let server handle both creation and confirmation at the same time based on the provided PaymentMethod Id