#sticks
1 messages · Page 1 of 1 (latest)
Hello 👋
Is this PaymentIntent associated with a Checkout Session or something?
yes, the paymentintent comes from a checkout session
You can use the List Checkout Session API and pass the PaymentIntent as a parameter to find the checkout session
https://stripe.com/docs/api/checkout/sessions/list?lang=node
The only heads up here is that line_items is an expandable property so you'd need to expand it accordingly
https://stripe.com/docs/api/checkout/sessions/object?lang=node#checkout_session_object-line_items
https://stripe.com/docs/api/expanding_objects?lang=node
does that help @hearty plume ?
line items have a type to tell if they are recurring, right?
I believe it should be under line_items.data.price.recurring