#Baran Buket Yıldız
1 messages · Page 1 of 1 (latest)
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?
Error: Stripe: Argument "customer" must be a string, but got: null (on API request to GET /v1/customers/{customer})
Can you share an example request ID?
It sounds like your session.customer is null/empty
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.