Add Stripe Keys to Config
Back in the Setup a Stripe account chapter, we had two keys in the Stripe console. The Secret key that we used in the backend and the Publishable key. The Publishable key is meant to be used in the frontend.
Add the following line to the export
block of src/config.js
.
STRIPE_KEY: "YOUR_STRIPE_PUBLIC_KEY",
Make sure to replace, YOUR_STRIPE_PUBLIC_KEY
with the Publishable key from the Setup a Stripe account chapter.
Next, we’ll build our billing form.
For help and discussion
Comments on this chapterIf you liked this post, please subscribe to our newsletter, give us a star on GitHub, and follow us on Twitter.