Closed sobowalebukola closed 5 years ago
Hi @sobowalebukola,
I've been successful with this tutorial, and I've implemented this beta version of stripe checkout in my own Gatsby project.
I've encountered the error you posted WHEN I did not have the appropriate Stripe secret key, or when the secret key was not available to Gastby.
I can reproduce your error exactly by:
gatsby-config.js
{
resolve: `gatsby-source-stripe`,
options: {
objects: [`Sku`],
secretKey: process.env.STRIPE_SECRET_KEY,
downloadFiles: true,
}
},
Thanks🙏🏾
I have the same issue but I don't think it's because of the wrong Stripe secret key. I've even hardcoded it and it still doesn't work, I rolled the secret key and tried with the new one and I have the same problem.
Gatsby CLI version: 2.8.11 Gatsby version: 2.17.11 Node version: 10.16.0
I had the same problem.
Fixed it by creating a test product in Stripe (under Orders > Products).
Make sure to fill in a product name and description, etc.
Also make sure to create a .env.development
file containing:
GATSBY_STRIPE_PUBLISHABLE_KEY=<your stripe public key>
STRIPE_SECRET_KEY=<your stripe secret key>
Then run gatsby develop
again.