#vadim70

1 messages · Page 1 of 1 (latest)

subtle flintBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

stoic wave
#

What event?

#

Can you share the id?

vestal quarry
#

checkout.session.completed

#

"id": "li_1Omeh3DV3CNMLzt7JQj7ezxS"

stoic wave
#

No event id's start with evt_

vestal quarry
#

What does that mean?

#

You mean, it should start with evt?

#

I guess it is an "id" field from inside data field

#

Which one do you need?

#

?

stoic wave
#

I need the event id of the event that you aren't getting metadata in

vestal quarry
#

Can I find it my dashboard?

#

in*

stoic wave
#

yep

#

Under developer tab

vestal quarry
#

evt_1OmehbDV3CNMLzt7q3zRHilj

stoic wave
#

I see the metadata there

vestal quarry
#

I guess I was looking for it in wrong place.
session = stripe.checkout.Session.retrieve(
event['data']['object']['id'],
expand=['line_items'],
)
line_items = session.line_items
I used retrieve method to get price_id , and was searching for it inside line_items.
I guess it should be inside event['data']['object'] instead?

stoic wave
#

Yep