houdini/app/views/user_mailer/_refund_receipt.html.erb

42 lines
905 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'>
Refund Receipt
</th>
</thead>
<tbody>
<tr>
<td><strong>Amount Refunded</strong></td>
<td>($<%= Format::Currency.cents_to_dollars(refund.amount) %>)</td>
</tr>
<tr>
<td><strong>Original Payment</strong></td>
<td>$<%= Format::Currency.cents_to_dollars(charge.amount) %></td>
</tr>
<tr>
<td><strong>Refund Date</strong></td>
<td><%= Format::Date.full(refund.created_at) %></td>
</tr>
<tr>
<td><strong>Refund ID</strong></td>
<td> <%= refund.id %></td>
</tr>
<tr>
<td><strong>Charge ID</strong></td>
<td> <%= charge.id %></td>
</tr>
<% if refund.reason %>
<tr>
<td><strong>Reason</trong></td>
<td> <%= refund.reason %> </td>
</tr>
<% end %>
</tbody>
</table>
<br>