thorsten-stripe / ecommerce-gatsby-tutorial

A Gatsby eCommercer starter example
https://gatsby-ecommerce-stripe.netlify.com/
MIT License
88 stars 37 forks source link

Netlify test deployment fails #5

Closed DOSputin closed 5 years ago

DOSputin commented 5 years ago

Trying the vanilla image

image

$: error #85907 GRAPHQL  There was an error in your GraphQL query:
$: - Unknown field 'attributes' on type 'StripeSku!'.
$: File: src/components/Products/Skus.js

Seems that this is unrelated to #3 and #4

Using the correct sk_test_key

thorsten-stripe commented 5 years ago

Unfortunately there are some IDs hardcoded in the query: https://github.com/thorsten-stripe/ecommerce-gatsby-tutorial/blob/master/src/components/Products/Skus.js#L35 that you will have to replace with the relevant product ID from your Stripe account.

I'll hope to change this example to get rid of the hardcoded product ID soon.

thorsten-stripe commented 5 years ago

I've fixed this and added a setup section to the README[0]. I've tested with a fresh Stripe account, so hopefully this should now work for you. Please reopen if you're still facing issues.

[0] https://github.com/thorsten-stripe/ecommerce-gatsby-tutorial#setup