diff --git a/assets/javascripts/discourse/templates/components/stripe-card.hbs b/assets/javascripts/discourse/templates/components/stripe-card.hbs index 5a47186..9211231 100644 --- a/assets/javascripts/discourse/templates/components/stripe-card.hbs +++ b/assets/javascripts/discourse/templates/components/stripe-card.hbs @@ -1,12 +1,17 @@ -
-
- -
+ + +
+ +
- +
+
+ +
+
{{#if result}} -
payment happened
+ {{i18n 'discourse_payments.success'}} {{/if}} diff --git a/assets/javascripts/discourse/templates/user/payments.hbs b/assets/javascripts/discourse/templates/user/payments.hbs index e4ea8d7..a20184f 100644 --- a/assets/javascripts/discourse/templates/user/payments.hbs +++ b/assets/javascripts/discourse/templates/user/payments.hbs @@ -1,5 +1,4 @@ - - -

Payments

- -{{stripe-card}} +{{#d-section pageClass="stripe-payments"}} +

{{i18n 'discourse_payments.title'}}

+ {{stripe-card}} +{{/d-section}} diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 0dc2680..051fd1d 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -1,3 +1,6 @@ en: js: discourse_payments: + title: Donate + success: Payment Successful + submit: Make Payment diff --git a/plugin.rb b/plugin.rb index 59fef00..bcf1845 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,6 +1,6 @@ # name: discourse-payments # about: Integrating Discourse with Stripe -# version: 1.3.0 +# version: 1.3.1 # url: https://github.com/choiceaustralia/discourse-payments # authors: Rimian Perkins