<%= render :partial => 'admin/shared/order_tabs', :locals => {:current => "Payments"} %>

<%= t("paypal_payment")%>


<%= t("paypal_txn_id")%>:   #<%= @paypal_payment.creditcard.display_number %>

<%=error_messages_for :paypal_payment %> <% form_for(@paypal_payment, :url => object_url, :html => { :method => :put}) do |payment_form| %> <% @paypal_payment.txns.each do |t| %> <% end %>
<%= t("transaction") %> <%= t("amount") %> <%= t("response_code") %> <%= "#{t('spree.date')}/#{t('spree.time')}" %>
<%=CreditcardTxn::TxnType.from_value t.txn_type.to_i%> <%=number_to_currency t.amount%> <%=t.response_code%> <%=t.created_at.to_s(:date_time24)%>

<%= button t('update') %>

<% end %> <%= link_to t("capture").titleize, capture_admin_order_paypal_payment_url(@order, @paypal_payment), :confirm => t('are_you_sure_you_want_to_capture') if @paypal_payment.can_capture? %>   <%= link_to t("list"), collection_url %>