#yopodi
1 messages · Page 1 of 1 (latest)
Where are you setting the product?
I'm using
stripe.checkout.Session.create(line_items=line_items . . .)
with the line items list I'm receiving from the frontend
but I'm not saving any information when creating the checkout sesion, only redirecting the client to the url
I'm confused. What product are you talking about?
ok, from the beginning
I have implemented a 'store' in my frontend, from which I receive a list of prices ids that I use to create a checkout session
this prices are not subscriptions just one time payments
when the client makes his purchase this are the events that are triggered in the webhook:
payment_intent.succeeded [evt_3N5uWOHKwC1Nojb61kQINoOi]
checkout.session.completed [evt_1N5uWRHKwC1Nojb6kB7eBO7C]
payment_intent.created [evt_3N5uWOHKwC1Nojb61EfcipWU]
mandate.updated [evt_1N5uWRHKwC1Nojb6DRRdTtLU]
charge.succeeded [evt_3N5uWOHKwC1Nojb61haVikfB]
from that events I'm trying to obtain the list of products that the client bought
but none of them seems to contain that information
I have another section where the type of prices that I use are plans for subscriptions and there I can get what products did the customer acquired, but in this scenario that is not the case
I believe this is what you're looking for: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items-data-price
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.