react-stripe-checkout icon indicating copy to clipboard operation
react-stripe-checkout copied to clipboard

Publishable Key not Set onClick Pay Now

Open domtaylor opened this issue 5 years ago • 0 comments

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.

domtaylor avatar May 24 '19 17:05 domtaylor