#Gilad
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
PaymentIntents aren't made to be used with products
they are just a way of describing the Intent of a customer to pay you a certain amount
I see...
So I have to make a call to see what products the user is paying for?
Hi, thanks for helping ๐
how are you integrating with Stripe? what are you using? Checkout Sessions, Payment Intents with Elements? etc
Yes, we have checkout sessions,
we are actually save the product after 'customer.subscription.updated'
So I guess I can use that..
if you're using Checkout Sessions with Subscriptions
what you need to listen to is basically invoice.paid events
So in these webhook the product id is in the data?
yes you have the prices in the invoice line items https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-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.
which you can retrieve https://stripe.com/docs/api/invoices/invoice_lines in the invoice.paid event
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Is this the same with one off checkout sessions? fetching from line_items to price to product seems too over the top