react-stripe-checkout
react-stripe-checkout copied to clipboard
Publishable Key not Set onClick Pay Now
Hi! Thank you for sharing this with the community.
I was running into issues when I deployed this my Gatsby site with Stripe warning that Publishable Key had not been set. I rechecked the .env file and it was set there.
I then tried adding stripeKey prop in the getConfig method in StripeCheckout.js. This seems to have done the trick when I tested locally with Stripe test key. However, fails when I deploy live. I would like to submit a new Pull request for you to update the reference in getConfig to include prop stripeKey.