<%= payment_method.plugin_name %> |
<%= payment_method.plugin_info.external_payment_id unless payment_method.plugin_info.blank? %>
|
<% unless payment_method.plugin_info.blank? and payment_method.plugin_info.properties.blank? %>
<% payment_method.plugin_info.properties.each do |property| %>
- <%= property.key %>: <%= property.value %>
<% end %>
<% end %>
|
<% if payment_method.is_default %>
<% else %>
<%= link_to "Make Default", kaui_engine.set_default_payment_method_account_path(payment_method.account_id, :params => {:payment_method_id => payment_method.payment_method_id}), :method => :put, :confirm => "Are you sure you want to make this payment method default?", :class => "btn btn-mini" %>
<% end %>
|
<% if payment_method.is_default %>
<%= link_to "Delete", kaui_engine.payment_method_path(payment_method.payment_method_id, :params => {:set_auto_pay_off => "true"}), :method => :delete, :confirm => "Are you sure you want to delete this payment method?", :class => "btn btn-mini" %>
<% else %>
<%= link_to "Delete", kaui_engine.payment_method_path(payment_method.payment_method_id), :method => :delete, :confirm => "Are you sure you want to delete this payment method?", :class => "btn btn-mini" %>
<% end %>
|
<% end %>
<% end %>