Stripe: Retrieve Checkout Line Items - getting a 500 Error, expects a string not [object Object] but the session id is a string

Version: latest
Server: NodeJS
Hosting: AWS/Docker
DB: MySql8, Postgres.

Not sure if this is a bug or not. In the Stripe Test environment I’m getting this error in response to my checkous.session.complete event (within this, I call the List Checkout Line Items Stripe action)

I’ve tested and it’s definitely the ‘List Checkout Line Items’ Stripe action that is causing the issue error below:
{
“status”: “500”,
“message”: “Stripe: Argument “session” must be a string, but got: [object Object] (on API request to GET /checkout/sessions/{session}/line_items)”,

For the ‘session’ I’m just using $_POST.data.object.id for the Session ID from the checkout.session.complete webhook.

Screen Shot 2021-04-29 at 5.14.16 pm

I also created a test where I output the full Webhook response from Stripe back to Stripe to see if there was an issue with the session id, but there isn’t.

@patrick I wonder if you might be able to take a look / help here?

Community Page
Last updated: