Open-Source-Access-Control-.../app/views/ipns/index.html.erb

36 lines
1.0 KiB
Plaintext
Raw Normal View History

2013-08-28 12:15:50 +00:00
<h2>PayPal IPN Records</h2>
<p>
<em>Automatically loaded from PayPal's servers</em>
</p>
2013-08-24 09:18:37 +00:00
<table>
<tr>
<th>Date</th>
<th>Name</th>
<th>Item</th>
<th>Amount</th>
</tr>
2013-08-28 11:25:54 +00:00
<% @ipns.sort_by(&:date_parsed).reverse!.each do |ipn| %>
2013-08-24 09:18:37 +00:00
<tr>
<td><%= ipn.payment_date %></td>
<td><%= ipn.first_name %> <%= ipn.last_name %></td>
<td><%= ipn.item_name %></td>
2013-08-24 10:40:34 +00:00
<td>
<% if ipn.payment_gross.blank? %>
<%= ipn.txn_type %>
<% else %>
<%= ipn.payment_gross %>
<% end %>
</td>
2013-08-24 09:18:37 +00:00
<td>
<% if ipn.payment.present? %>
<%= link_to "Linked Payment", ipn.payment %>
<% else %>
<%= link_to "Try to link email '#{ipn.payer_email}' at membership level '#{ipn.payment_gross.to_i}'", link_ipn_path(ipn) %>
<% end %>
</td>
<td><%= link_to "Details", ipn %></td>
2013-08-24 10:40:34 +00:00
<td><%= link_to "Validate", validate_ipn_path(ipn) %></td>
2013-08-24 09:18:37 +00:00
</tr>
<% end %>
</table>