#Baran Buket Yıldız

1 messages · Page 1 of 1 (latest)

uncut badgerBOT
pure igloo
#

Ok and what error are you hitting that leads you to fall into that catch code path?

#

your try block has a number of calls

#

which one is failing?

#

Is it a stripe api request that fails?

frail spire
#

Error: Stripe: Argument "customer" must be a string, but got: null (on API request to GET /v1/customers/{customer})

pure igloo
#

Can you share an example request ID?

#

It sounds like your session.customer is null/empty

uncut badgerBOT
pure igloo
#

Ok without examples, I can only guess. I suspect that you may want to enable customer_creation=always if you depend on having customers. Likely your account is using a newer API where the default is if_required so some sessions will not have customer values set
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation