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

View File

@ -4,7 +4,10 @@ export default Ember.Component.extend({
result: null, result: null,
donateAmounts: [5, 10], donateAmounts: [5, 10],
amount: null, amount: null,
stripe: Stripe('pk_test_b8RmhzlL8QPizJRqOrKF3JEV'),
stripe: function() {
return Stripe(Discourse.discourse_donations_public_key);
}.property('stripe'),
card: function() { card: function() {
var elements = this.get('stripe').elements(); var elements = this.get('stripe').elements();

View File

@ -3,8 +3,6 @@ plugins:
default: true default: true
client: true client: true
discourse_donations_secret_key: discourse_donations_secret_key:
type: text client: false
client: true
discourse_donations_public_key: discourse_donations_public_key:
type: text
client: true client: true