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

Two keys for stripe needed in secret.js #190

Closed
ankitjaininfo opened this issue Oct 11, 2014 · 1 comment
Closed

Two keys for stripe needed in secret.js #190

ankitjaininfo opened this issue Oct 11, 2014 · 1 comment

Comments

@ankitjaininfo
Copy link

Stripe integration requires two keys: secret key and publishable key. Both the keys should be used from config; right now one is in config, other is in .jade file.

This prevents stripe keys to be passed via env variables.

  stripe: {
    apiKey: process.env.STRIPE_KEY || 'sk_test_BQokikJOvBiI2HlWgH4olfQ2'
  }
@StephenPunwasi
Copy link

Actually since your secret.js isn't going to be published, you are supposed to input your Live Secret Key when you're ready to start taking customer payments.

The Live Publishable Key is for using in any code you might publish (or won't be as secure as your secret.js in deployment), and only has the ability to create a token in your Stripe account. You can't make actual charges with it.

@sahat sahat closed this as completed in afef373 Oct 18, 2014
IrfanBaqui pushed a commit to IrfanBaqui/hackathon-starter that referenced this issue Jun 24, 2015
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

2 participants