#allen-checkout-lineitems
1 messages · Page 1 of 1 (latest)
allen-checkout-lineitems
@regal vector You want the Expand feature, see https://stripe.com/docs/expand#includable-properties
thank you
not quite
I'm using checkout->sessions->all(['payment_intent'=> $payment_intent_id])
How can I adjust this to expand to include the line_items? i just tried this but it did not work:
$sessions = $stripe->checkout->sessions->all(['payment_intent'=> 'pi_3NXoB9F6GTvFAnHX0Gxb1SiA'], ['expand'=>['line_items']]);
just above that section it tells you exactly how this works. I recommend reading the whole doc first to understand the Expand feature overall
but what you want is data.line_items in this case