#wintercounter
1 messages ยท Page 1 of 1 (latest)
as suggested, I'm making a call to get line items
but I cannot expand
const lineItems = await stripe.checkout.sessions.listLineItems(checkoutSession.id, {
expand: ['line_items.data.price.product']
})
Are you seeing an error?
Error: This property cannot be expanded (line_items). You may want to try expanding 'data.line_items' instead.
ah if you put data then I believe it'll complain about the expand being too deep right?
expand: ['data.line_items.data.price.product']
})```
hmm, i just tried moving .data the to the front ๐
let me try having then both places
you can only expand upto 4 levels
i still got Error: This property cannot be expanded (data.line_items). anyway