Stripe - unable to create customer session

Wappler Version : 6.8
Operating System : Mac
Server Model: NodeJS (stable latest)
Database Type: MySQL
Hosting Type: AWS

When I use the Create Customer Session I get the following error:

{"status":"500","message":"Cannot read properties of undefined (reading 'create')","stack":"TypeError: Cannot read properties of undefined (reading 'create')
    at exports.createCustomerSession (xxx/lib/modules/stripe.js:1343:34)
    at App._exec (xxx/lib/core/app.js:708:49)
    at App._exec (xxx/lib/core/app.js:675:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async App.exec (xxx/lib/core/app.js:644:5)
    at async App.define (xxx/lib/core/app.js:626:5)"}

To rule out Stripe connection and incorrect customer id I also ran the List Customers step first. That returned data correctly and I set the customer property of the Customer Session Create to the id of the first customer returned:

listCustomers.data[0].id

Whatever I do I get the above error which makes me wonder if something is missing in the existing Stripe NodeJS implementation

Have you tried putting it in Client Reference ID field or both?

Thanks Twitch,
That has different options to what I see. Is it the Create Customer Session step?

Whoops my bad, I wasn't fully paying attention and misread it. I thought you were doing a checkout session. I haven't used the create customer session yet.

1 Like

Hi @patrick,
I appreciate you are probably knee-deep in W7 at the moment but I need this to be able to add a pricing table to a page where the user is buying a subscription on behalf of an organisation - I need to retrieve the customer (the organisation, not user) and set the pricing table to a session for that customer. Would you have a moment to have a look please?