#gvido-error

1 messages · Page 1 of 1 (latest)

barren hollow
#

hi! do you have a lot more context please than that?

#

the exact code you're using, the full error message and stack trace, what language it is, what exact API or product you're using, etc

keen flare
#

If I refresh the page that sends this request, everything will be fine. But if I reset the cache, or return to the page from checkout, the error will appear again.

barren hollow
#

you get that error if env('STRIPE_API_SECRET_KEY'); is null or undefined in $stripe = new \Stripe\StripeClient(env('STRIPE_API_SECRET_KEY'));

#

so you should check that and add some logs, since that's the issue, your environment variable is not set for whatever reason