-
Setting up Stripe
Make sure you have a stripe account that has products in there.
For example: T-shirt - $15 - with 3 variant SKUs (small, medium, large)
-
Create a config.js file with your Stripe keys
module.exports = {
stripe: {
testId: "TEST API HERE",
testSecret: "TEST SECRET HERE",
},
};
-
Run Gatsby
Gatsby Develop
Your site is now running at
http://localhost:8000
!Note: You'll also see a second link:
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.You should now see a front page that auto-generates all of your Stripe Products.