Adding IPN validation

This commit is contained in:
2013-08-24 03:40:34 -07:00
parent ec4cf4dea9
commit eb782f11d5
6 changed files with 69 additions and 15 deletions

View File

@@ -11,7 +11,13 @@
<td><%= ipn.payment_date %></td>
<td><%= ipn.first_name %> <%= ipn.last_name %></td>
<td><%= ipn.item_name %></td>
<td><%= ipn.payment_gross %></td>
<td>
<% if ipn.payment_gross.blank? %>
<%= ipn.txn_type %>
<% else %>
<%= ipn.payment_gross %>
<% end %>
</td>
<td>
<% if ipn.payment.present? %>
<%= link_to "Linked Payment", ipn.payment %>
@@ -20,6 +26,7 @@
<% end %>
</td>
<td><%= link_to "Details", ipn %></td>
<td><%= link_to "Validate", validate_ipn_path(ipn) %></td>
</tr>
<% end %>
</table>

View File

@@ -35,7 +35,7 @@
</div>
<div class="field">
<%= label_tag :payment_date %>
<%= text_field_tag :payment_date, Date.today.to_s %>
<%= text_field_tag :payment_date, "20:46:54 Jun 20, 2013 PDT" %>
</div>
<div class="field">
<%= label_tag :txn_type %>

View File

@@ -1,6 +1,6 @@
<p>
<b>User:</b>
<%= @payment.user.name_with_payee_and_member_level unless @payment.user.blank? %>
<%= link_to @payment.user.name_with_payee_and_member_level, @payment.user unless @payment.user.blank? %>
</p>
<p>