Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gatsby E-commerce Tutorial should say to include STRIPE_PUBLISHABLE_KEY #28385

Closed
olisteadman opened this issue Nov 30, 2020 · 0 comments · Fixed by #28405
Closed

Gatsby E-commerce Tutorial should say to include STRIPE_PUBLISHABLE_KEY #28385

olisteadman opened this issue Nov 30, 2020 · 0 comments · Fixed by #28405
Labels
type: documentation An issue or pull request for improving or updating Gatsby's documentation

Comments

@olisteadman
Copy link
Contributor

Description

Tutorial codeblock indicates config should include STRIPE_SECRET_KEY but does not mention STRIPE_PUBLISHABLE_KEY.

For users supplying only the STRIPE_SECRET_KEY (without also adding STRIPE_PUBLISHABLE_KEY), gatsby-source-stripe fails to load allStripePrice as a field to be tested in GraphiQL; a browser pointed at http://localhost:8000 responds with:
Error: There was an error in your GraphQL query: Cannot query field "allStripePrice" on type "Query". Did you mean "allSitePage"?

We can avoid newcomers being put off by an ambiguous instruction being given in tutorial codeblocks, with a one-liner addition to https://github.com/gatsbyjs/gatsby/blob/master/docs/tutorial/ecommerce-tutorial/index.md

@olisteadman olisteadman added the type: documentation An issue or pull request for improving or updating Gatsby's documentation label Nov 30, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Nov 30, 2020
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation An issue or pull request for improving or updating Gatsby's documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants