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

43 lines
962 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'>
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>