<% if details.is_a? ActiveMerchant::Billing::PaypalExpressResponse %>
<%= t('transaction') %> <%= details.params["transaction_id"] %> - <%= log.created_at.to_s(:date_time24) %> |
|
<%= details.params["transaction_type"] %>
|
|
<%= details.message %>
|
|
<%= number_to_currency details.params["gross_amount"] %>
|
|
<%= details.params["message"] %>
|
|
<%= details.params["payment_status"] %>
|
<% if details.params["payment_status"] == "Pending" %>
|
<%= details.params["pending_reason"] %>
|
<% end %>
<% elsif details.is_a? ActiveMerchant::Billing::Integrations::Paypal::Notification %>
<%= t('ipn_transaction') %> <%= details.params["txn_id"] %> - <%= log.created_at.to_s(:date_time24) %> |
|
<%= details.params["txn_type"] %>
|
|
<%= details.params["payment_status"] %>
|
|
<%= number_to_currency details.params["mc_gross"] %>
|
|
<%= details.params["payment_status"] %>
|
<% else %>
<%= t('unknown_transaction') %> - <%= log.created_at.to_s(:date_time24) %> |
<%= log.details %>
|
<% end %>
<% end %>