load the public key from settings
This commit is contained in:
parent
a84de2c876
commit
19a7956f43
|
@ -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();
|
||||
|
|
|
@ -3,8 +3,6 @@ plugins:
|
|||
default: true
|
||||
client: true
|
||||
discourse_donations_secret_key:
|
||||
type: text
|
||||
client: true
|
||||
client: false
|
||||
discourse_donations_public_key:
|
||||
type: text
|
||||
client: true
|
||||
|
|
Loading…
Reference in New Issue