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,
|
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();
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue