#allen-checkout-lineitems

1 messages · Page 1 of 1 (latest)

granite tinselBOT
steep wind
#

allen-checkout-lineitems

regal vector
#

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']]);

steep wind
#

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

regal vector
#

thank you.

#

Now I'll be able to program the Order fulfillment page

granite tinselBOT