#sqarf
1 messages · Page 1 of 1 (latest)
Hi,
What do you mean exactly by extend 'line_items -> data -> price -> product' object ?
Is there a specific use case you're trying to account for?
Yes, here's the case:
This is my line_items object. I can see there is an id of product as well. I wonder if it is possible to retrieve a full info about this product, not just it's id
Ah yes, you mean to "expand". You can add this property when fetching the Checkout Session:
expand:['line_items.data.price.product']
https://stripe.com/docs/api/expanding_object
Oh, my bad. Nice, thanks!