Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Using the 'expand line_items' parameter, I get the same checkout_session object back that is identical to if I did not use the 'expand line_items'. There is no additional data and no line items. Commented Apr 29, 2023 at 3:16
  • The CheckoutSession ID would be the same since you're retrieving the CheckoutSession by that ID. When you expand the line_items you should get the product ID. Commented Apr 29, 2023 at 5:24
  • I know that is what SHOULD happen, but for some reason, it is not... even with 'expand line_items', I am not getting any line items back. However, this did lead to a soltuion that works, using the allLineItems/listLineItems call which I will post below. Commented Apr 29, 2023 at 12:03