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

41 lines
836 B
Text
Raw Normal View History

<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<table class='table'>
<thead>
<th colspan='2'>
Payment Receipt
</th>
</thead>
<tbody>
<tr>
<td><strong>Total Amount</strong></td>
<td> <%= print_currency(charge.amount) %></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>