#felix m.
1 messages · Page 1 of 1 (latest)
Hi there!
I'm not sure I understand your question. Can you clarify what you are trying to do?
In the Dashboard I have seen that when a Checkout session is started and after that is confirmed (red flag), a POST is made to /v1/payment_pages URL and its response (blue flag) has a lot of information. I would like to collect part of that information to save it.
what do you mean by "red flag" and "blue flag"? And can you clarify exactly what information you want to collect?
Thanks. No I don't think you can directly get that response with the API
But what information exactly are you looking for?
payment_intent ID
That you can find directly when looking at the Checkout Session object, in the payment_intent property https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
I tried to collect but I get null
Can you share the Checkout Session ID?
cs_test_a1m6hsLGA9ckXY2O260MtzXdSXB1uYLpGm3350YnaRzvFefFk0r1aopbE1
This Checkout Session does have a PaymentIntent.
When/where is this screenshot coming from?
This is a response for Checkout Session Object before a payment is made
yep, and we don't generate the PaymentIntent until the page is visited and the payment starts
all the information you need is returned in the webhook checkout.session.completed when the payment is completed, that's all you need. https://stripe.com/docs/payments/checkout/fulfill-orders