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

Stripe Payment Gateway Stuck in Test Mode #17

Closed
domtaylor opened this issue May 23, 2019 · 2 comments
Closed

Stripe Payment Gateway Stuck in Test Mode #17

domtaylor opened this issue May 23, 2019 · 2 comments

Comments

@domtaylor
Copy link

domtaylor commented May 23, 2019

First off thanks for your great work in developing this and making it open source. This is my first time using Gatsby for an Ecommerce site after developing a blog in Gatsby as a first project.

I don't know if you're still updating this project, but when I deployed to Netlify, I'm unable to get payment gateway out of test mode. Originally set .env STRIPE_PUBLISHABLE_KEY to live and then set login in Moltin to secret key and enabled Stripe payment gateway via dashboard. Gone through test purchase and test mode displays with following error message:

You did not set a valid key. Call stripeSetPublishableKey() with your publishable key. See stripe.com/docs/stripe.js

I have tried setting to my Stripe test token as well to see if this will complete the transaction but get same error.

@domtaylor
Copy link
Author

System:
OS: macOS 10.14.3
CPU: (8) x64 Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.0 - /usr/local/opt/node@10/bin/node
Yarn: 1.6.0 - ~/.yarn/bin/yarn
npm: 6.4.1 - /usr/local/opt/node@10/bin/npm
Languages:
Python: 3.7.0 - /usr/local/bin/python
Browsers:
Chrome: 74.0.3729.169
Firefox: 66.0.5
Safari: 12.0.3
npmPackages:
gatsby: ^2.3.4 => 2.6.0
gatsby-cli: ^2.5.4 => 2.6.0
gatsby-cypress: ^0.1.5 => 0.1.9
gatsby-image: ^2.0.30 => 2.1.0
gatsby-plugin-google-analytics: ^2.0.15 => 2.0.20
gatsby-plugin-manifest: ^2.0.20 => 2.1.1
gatsby-plugin-nprogress: ^2.0.8 => 2.0.10
gatsby-plugin-offline: ^2.0.24 => 2.1.1
gatsby-plugin-react-helmet: ^3.0.12 => 3.0.12
gatsby-plugin-sharp: ^2.0.32 => 2.0.37
gatsby-plugin-styled-components: ^3.0.6 => 3.0.7
gatsby-source-filesystem: ^2.0.23 => 2.0.37
gatsby-transformer-sharp: ^2.1.15 => 2.1.19
npmGlobalPackages:
gatsby-source-filesystem: 2.0.36

@domtaylor domtaylor reopened this May 24, 2019
@domtaylor
Copy link
Author

RESOLVED! Added stripeKey in getConfig property in StripeCheckout.js and checkout completes.

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