#kamil-checkout-paymentintent
1 messages · Page 1 of 1 (latest)
kamil-checkout-paymentintent
you can't attach a PaymentIntent to a Checkout Session. Checkout creates one for you automatically
Oh, seems I gotten confused. But nevermind - I create a session with an intent attached, how do I process this through API to get a Charge attached to Intent?
You don't do any of this. If you use Checkout, you create a Session first and then you redirect to the Session's url so that the customer can pay on Checkout
So I don't need the session at all if I want to do this through API?
But I still need to create an Intent, right?
This happens when the customer fills the data in the redirect URL? Because when I create the Session, the Intent in set to null.
I worry you're approaching this a bit wrong. We have clear end to end guides for most of what you need
What are you trying to really do?
and yes the PaymentIntent is created later as part of the customer paying on Checkout (if you use Checkout)
I'm thinking about switching from Checkout Session to the flow where I gather data from our frontend and process this all in the backend without using any frontend elements from Stripe.
Perhaps I was too fixated on reproducing what happens with the Checkout Session.
without using any frontend elements from Stripe.
Yeah don't do that. Just collecting card details is going to take a lot of energy and then PCI compliance rules and such. Just use Checkout
Ok. I also had one more think in mind - testing the Integration without having to manually will the form in Checkout Session url.