#gstauf
1 messages · Page 1 of 1 (latest)
HI
Can you give me more details about the error you are seeing?
What is triggering it? Initializing Stripe?
"message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/.",
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Are you hitting the API directly or using one of our client libraries?
setup like this, with node
export const stripe = new Stripe(process.env.STRIPE_KEY, {
apiVersion: '2020-08-27'
});
Yeah that hasn't changed at all.
Mayebe we are using an old api
Have you logged out your variable there?
Not sure, I know we setup a newer production key, but this is on test data. i will have to check on the variable, but we are not getting an error when we set up a checkout 'setup mode', only when we are listing payment methiods
The only thing that would really cause this error is if the correct key isn't being used when you initialize stripe
So yeah, next step would be to log out the key when you make this list payment method request
Ok, thanks alot, that should help, appreciate you!