#kamil-checkout-paymentintent

1 messages · Page 1 of 1 (latest)

undone onyxBOT
dense onyx
#

kamil-checkout-paymentintent

#

you can't attach a PaymentIntent to a Checkout Session. Checkout creates one for you automatically

crystal aspen
#

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?

dense onyx
#

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

crystal aspen
#

So I don't need the session at all if I want to do this through API?

dense onyx
#

correct

#

though you have to collect payment method details one way or another

crystal aspen
#

But I still need to create an Intent, right?

crystal aspen
dense onyx
#

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)

crystal aspen
#

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.

dense onyx
#

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

crystal aspen
#

Ok. I also had one more think in mind - testing the Integration without having to manually will the form in Checkout Session url.