#exquisite_unicorn_68239
1 messages · Page 1 of 1 (latest)
Hi, let me help you with this.
ty
What do you mean by
The api is not allowing me to see checkout.session.completed.
I noticed that when a customer enters a custom field response, the only place where that response is recorded is in the checkout.session.completed
so I want to be able to read it in order to extract that info.
we're basically working on an automation via make to get the data from the stripe transaction and update customer details in active campaign. For some reason, make does't give me the checkout.session.completed data
The checkout.session.completed webhook event contains the Checkout Session object. You can also retrieve it via the API: https://stripe.com/docs/api/checkout/sessions/retrieve
and custom field data would be there too?
Yes
great! so now can you pls help me figure out how to get the checkout session id from a transaction?
What information/object/ID do you have available?
What event ID?
from a purchase
There's no Stripe object called "purchase".
that's why I said event id.
payment_intent.succeeded
you need to use checkout.session.completed since that is the only place the custom fields get returned.
I don't understand your earlier points about not being able to see or use that event, can you elaborate, maybe some screenshots of what you're seeing?
I was using the payment_intent.succeded event to start my automation. I have make listening for that event. I have the event and the customer but when I search for the customer info, i don't get the id of the checkout. How can I get the checkout id from the customer or the event id?
How can I get the checkout id from the customer or the event id?
well you can possibly use https://stripe.com/docs/api/checkout/sessions/list?lang=curl#list_checkout_sessions-payment_intent or https://stripe.com/docs/api/checkout/sessions/list?lang=curl#list_checkout_sessions-customer
but the point is normally your starting point should be the checkout.session.completed event, that is the main event you should be using as the jumping off point for any automation of order fulfillment, not the other events.
@zinc helm pls see this thread
Hi, I joined the conversation. I work with the API calls.
Our process starts with the payment_intent.succeeded webhook
We want to find a way to get the checkout session id that is linked to the payment or the customer.
see my previous answer then as it addresses both those points.
We see that inside the checkout, there is the ID of the other modules.
But within the payment, we don't have the ID of the checkout.
The same also through customer ID
So we want to know if there is a module that I can link between them?
yes there is and I mentioned it earlier.
you can call https://stripe.com/docs/api/checkout/sessions/list?lang=curl#list_checkout_sessions-payment_intent to list CheckoutSessions associated with a given PaymentIntent pi_xxx .