diff --git a/assets/javascripts/discourse/components/stripe-card.js.es6 b/assets/javascripts/discourse/components/stripe-card.js.es6 index 1eab3f1..2dc388a 100644 --- a/assets/javascripts/discourse/components/stripe-card.js.es6 +++ b/assets/javascripts/discourse/components/stripe-card.js.es6 @@ -45,6 +45,7 @@ export default Ember.Component.extend({ actions: { submitStripeCard() { this.stripe.createPaymentMethod('card', this.card).then((result) => { + if (result.error) { this.set('cardError', result.error.message); } diff --git a/assets/javascripts/discourse/templates/components/donation-form.hbs b/assets/javascripts/discourse/templates/components/donation-form.hbs index 641cfb1..6b9f3f5 100644 --- a/assets/javascripts/discourse/templates/components/donation-form.hbs +++ b/assets/javascripts/discourse/templates/components/donation-form.hbs @@ -30,7 +30,7 @@ {{/if}} {{else}} -