houdini/app/views/charge_mailer/_payment_receipt.html.erb

42 lines
927 B
Text
Raw Normal View History

2020-06-12 20:03:43 +00:00
<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
<table class='table'>
<thead>
<th colspan='2'>
Payment Receipt
</th>
</thead>
<tbody>
<tr>
<td><strong>Total Amount</strong></td>
2018-07-23 21:35:27 +00:00
<td> <%= print_currency(charge.amount, charge.nonprofit.currency_symbol) %></td>
</tr>
<% if @event %>
<tr>
<td><strong>Event</strong></td>
<td> <%= @event.name %></td>
</tr>
<% end %>
<tr>
<td><strong>Transaction Date</strong></td>
<td><%= Format::Date.full(charge.created_at, charge.nonprofit.timezone) %></td>
</tr>
<tr>
<td><strong>Transaction ID</strong></td>
<td> <%= charge.id %></td>
</tr>
<tr>
<% if GetData.chain(charge.card, :name).present? %>
<td><strong>Card</strong></td>
<td> <%= charge.card.name %> </td>
<% end %>
</tbody>
</table>
<br>