show the payment on the thankyou page
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
|
||||
export default Discourse.Route.extend({
|
||||
model(params) {
|
||||
return ajax(`/patrons/${params.pid}`, { method: "get" });
|
||||
}
|
||||
});
|
||||
@@ -20,7 +20,11 @@
|
||||
{{payment.username}}
|
||||
{{/link-to}}
|
||||
</td>
|
||||
<td>{{{stripe-payment-link payment}}}</td>
|
||||
<td>
|
||||
{{#link-to "patrons.show" payment.payment_intent_id}}
|
||||
{{{payment.payment_intent_id}}}
|
||||
{{/link-to}}
|
||||
</td>
|
||||
<td>{{payment.receipt_email}}</td>
|
||||
<td>{{{format-duration payment.created_at_age}}}</td>
|
||||
<td class="amount">{{payment.amount_currency}}</td>
|
||||
|
||||
@@ -6,6 +6,21 @@
|
||||
{{cook-text siteSettings.discourse_patrons_success_page}}
|
||||
</p>
|
||||
|
||||
{{#if model}}
|
||||
<table>
|
||||
<tr>
|
||||
<td>Payment ID</td>
|
||||
<td>{{model.id}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Amount</td>
|
||||
<td>{{model.amount}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{{/if}}
|
||||
|
||||
<hr>
|
||||
|
||||
{{#d-button action="goBack" class="btn btn-primary"}}
|
||||
{{i18n 'discourse_patrons.buttons.success'}}
|
||||
{{/d-button}}
|
||||
|
||||
Reference in New Issue
Block a user