Merge branch 'currency_format' into staging
This commit is contained in:
commit
d92ba3f8cd
|
@ -23,7 +23,7 @@ export default Ember.Component.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
card: function() {
|
card: function() {
|
||||||
var elements = this.get('stripe').elements();
|
let elements = this.get('stripe').elements();
|
||||||
return elements.create('card', {
|
return elements.create('card', {
|
||||||
hidePostalCode: this.get('settings').discourse_donations_hide_zip_code
|
hidePostalCode: this.get('settings').discourse_donations_hide_zip_code
|
||||||
});
|
});
|
||||||
|
@ -36,7 +36,7 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
submitStripeCard() {
|
submitStripeCard() {
|
||||||
var self = this;
|
let self = this;
|
||||||
|
|
||||||
this.get('stripe').createToken(this.get('card')).then(data => {
|
this.get('stripe').createToken(this.get('card')).then(data => {
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ export default Ember.Component.extend({
|
||||||
else {
|
else {
|
||||||
self.set('transactionInProgress', true);
|
self.set('transactionInProgress', true);
|
||||||
|
|
||||||
var params = {
|
let params = {
|
||||||
stripeToken: data.token.id,
|
stripeToken: data.token.id,
|
||||||
amount: self.get('amount') * 100
|
amount: self.get('amount') * 100
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
plugins:
|
plugins:
|
||||||
discourse_donations_enabled:
|
discourse_donations_enabled:
|
||||||
default: true
|
default: false
|
||||||
client: true
|
client: true
|
||||||
discourse_donations_secret_key:
|
discourse_donations_secret_key:
|
||||||
client: false
|
client: false
|
||||||
|
|
Loading…
Reference in New Issue