Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishable Key not Set onClick Pay Now #138

Open
domtaylor opened this issue May 24, 2019 · 0 comments
Open

Publishable Key not Set onClick Pay Now #138

domtaylor opened this issue May 24, 2019 · 0 comments

Comments

@domtaylor
Copy link

domtaylor commented May 24, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant