load the public key from settings

This commit is contained in:
Rimian Perkins
2017-02-27 14:22:52 +11:00
parent a84de2c876
commit 19a7956f43
2 changed files with 5 additions and 4 deletions
@@ -4,7 +4,10 @@ export default Ember.Component.extend({
result: null,
donateAmounts: [5, 10],
amount: null,
stripe: Stripe('pk_test_b8RmhzlL8QPizJRqOrKF3JEV'),
stripe: function() {
return Stripe(Discourse.discourse_donations_public_key);
}.property('stripe'),
card: function() {
var elements = this.get('stripe').elements();