-
Notifications
You must be signed in to change notification settings - Fork 41
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
Multiple Publishable Keys #39
Comments
@Paskalouis just ran into this myself today didn't have time to think about a PR yet but my current solution is to implement my own stripe service and override the not super elegand but does the trick until this is addressed |
@Paskalouis - We had a similar need, and got around this by manually setting the stripe service's this.stripev3.set('config.publishableKey', key);
return this.stripev3.load(); |
#59 has added the ability to provide the publishable key when calling Do people have a requirement though to toggle the publishable key... i.e. to change it after it has already been set? If so, do you know if this works with Stripe? |
@danwenzel @lindyhopchris Yes, in some cases, people may need to toggle the publishable key. Thank you ! |
just noticed I forgot to add another way to work around this here: I am building the ember app with a unique placeholder as the stripe key. When deploying the app, this placeholder gets replaced (via a sed command) with the actual stripe key. That way we can deploy the same artifact using different configs e.g. for test and prod |
Hi,
I am currently having the condition where the publishable key can be different because there are conditions that may change the Stripe Account, which means setting different publishable key.

I see that we can only set one publishable key on environment.js , and if I don't set anything there, my application went error.
I am thinking that will there will be support for setting up publishable key 'later', not in environment.js, but when I want / need to.
Thank you
The text was updated successfully, but these errors were encountered: