#exquisite_unicorn_68239

1 messages · Page 1 of 1 (latest)

safe larkBOT
hollow radish
#

Hi, let me help you with this.

stone matrix
#

ty

hollow radish
#

What do you mean by

The api is not allowing me to see checkout.session.completed.

stone matrix
#

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

hollow radish
stone matrix
#

and custom field data would be there too?

hollow radish
#

Yes

stone matrix
#

great! so now can you pls help me figure out how to get the checkout session id from a transaction?

hollow radish
#

What information/object/ID do you have available?

stone matrix
#

let me check whe I'm getting from my api call

#

I see an event id and customer id

hollow radish
#

What event ID?

stone matrix
#

from a purchase

hollow radish
#

There's no Stripe object called "purchase".

stone matrix
#

that's why I said event id.

hollow radish
#

What's the event type?

#

Or could you just share an example Event ID?

stone matrix
#

payment_intent.succeeded

safe larkBOT
distant latch
#

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?

stone matrix
#

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?

distant latch
#

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.

stone matrix
#

@zinc helm pls see this thread

zinc helm
#

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.

distant latch
#

see my previous answer then as it addresses both those points.

zinc helm
#

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?

distant latch
#

yes there is and I mentioned it earlier.