#vadim70
1 messages · Page 1 of 1 (latest)
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.
No event id's start with evt_
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?
?
I need the event id of the event that you aren't getting metadata in
evt_1OmehbDV3CNMLzt7q3zRHilj
I see the metadata there
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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?
Yep