2019-09-11 06:19:50 -04:00
|
|
|
|
|
|
|
{{#if confirmation}}
|
2019-09-11 21:21:27 -04:00
|
|
|
{{#d-modal closeModal=(action "closeModal") modalStyle="inline-modal" title=(i18n "discourse_patrons.confirm")}}
|
2019-09-11 06:19:50 -04:00
|
|
|
{{#d-modal-body}}
|
2019-09-11 23:46:30 -04:00
|
|
|
<table class="discourse-patrons-confirmation">
|
2019-09-11 06:19:50 -04:00
|
|
|
<tr>
|
2019-09-11 23:46:30 -04:00
|
|
|
<td>{{i18n 'discourse_patrons.confirmation.amount'}}</td>
|
2019-09-11 06:19:50 -04:00
|
|
|
<td class="discourse-donations-amount">{{amount}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-09-11 23:46:30 -04:00
|
|
|
<td>{{i18n 'discourse_patrons.confirmation.last4'}}</td>
|
|
|
|
<td class="discourse-patrons-last4">.... .... .... {{last4}}</td>
|
2019-09-11 06:19:50 -04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{{/d-modal-body}}
|
|
|
|
|
|
|
|
<div class='modal-footer'>
|
2019-09-12 02:16:38 -04:00
|
|
|
{{#d-button action="confirmStripeCard" class="btn btn-primary btn-payment btn-discourse-patrons"}}
|
2019-09-12 02:28:19 -04:00
|
|
|
{{i18n 'discourse_patrons.buttons.confirm_payment'}}{{amount}}
|
2019-09-11 06:19:50 -04:00
|
|
|
{{/d-button}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{/d-modal}}
|
|
|
|
|
|
|
|
{{#if paymentError}}
|
|
|
|
<div class="popup-tip bad">
|
|
|
|
{{paymentError}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{else}}
|
2019-09-11 06:37:23 -04:00
|
|
|
<div class="discourse-patrons-section-columns">
|
2019-09-11 06:19:50 -04:00
|
|
|
<div class="section-column">
|
2019-09-12 02:28:19 -04:00
|
|
|
<h3>{{i18n 'discourse_patrons.payment.your_information'}}</h3>
|
2019-09-11 06:19:50 -04:00
|
|
|
|
2019-09-12 01:52:30 -04:00
|
|
|
<div class="user-controls discource-patrons-fields">
|
2019-09-12 01:13:08 -04:00
|
|
|
<div class="display-row">
|
|
|
|
<div class="field">
|
|
|
|
{{i18n 'discourse_patrons.billing.name'}}
|
|
|
|
</div>
|
|
|
|
<div class="value">
|
|
|
|
{{input value=billing.name}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="display-row">
|
|
|
|
<div class="field">
|
|
|
|
{{i18n 'discourse_patrons.billing.email'}}
|
|
|
|
</div>
|
|
|
|
<div class="value">
|
2019-09-12 02:16:38 -04:00
|
|
|
{{input type="email" value=billing.email}}
|
2019-09-12 01:13:08 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="display-row">
|
|
|
|
<div class="field">
|
|
|
|
{{i18n 'discourse_patrons.billing.phone'}}
|
|
|
|
</div>
|
|
|
|
<div class="value">
|
|
|
|
{{input value=billing.phone}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-11 06:19:50 -04:00
|
|
|
</div>
|
2019-09-12 01:13:08 -04:00
|
|
|
|
2019-09-11 06:19:50 -04:00
|
|
|
</div>
|
|
|
|
<div class="section-column">
|
2019-09-12 02:28:19 -04:00
|
|
|
<h3>{{i18n 'discourse_patrons.payment.payment_information'}}</h3>
|
2019-09-12 02:16:38 -04:00
|
|
|
|
|
|
|
<div class="user-controls discource-patrons-fields">
|
|
|
|
<div class="display-row">
|
|
|
|
<div class="field">
|
|
|
|
{{i18n 'discourse_patrons.amount'}}
|
|
|
|
{{siteSettings.discourse_patrons_currency}}
|
|
|
|
</div>
|
|
|
|
<div class="value">
|
|
|
|
{{combo-box valueAttribute="value" content=amounts value=amount}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-11 06:19:50 -04:00
|
|
|
</div>
|
2019-09-12 02:16:38 -04:00
|
|
|
|
|
|
|
{{stripe-card
|
|
|
|
amount=amount
|
|
|
|
currency=currency
|
|
|
|
billing=billing
|
|
|
|
handleConfirmStripeCard=(action "handleConfirmStripeCard")
|
|
|
|
}}
|
2019-09-11 06:19:50 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|