<% if @payment_methods.present? %> <% @payment_methods.each do |payment_method| %> <% end %> <% end %>
Card Type Mask Number / Baid Expiration Date Default Method Actions
<%= payment_method["cardType"] %> <%= payment_method["maskNumber"] %> <%= payment_method["expirationDate"] %> <% if payment_method['defaultMethod'] %> <% else %> <%= link_to "Make Default", kaui_engine.set_default_payment_method_account_path(:id => @account_id, :params => { :payment_method_id => payment_method['id'] }), :method => "PUT", :confirm => "Are you sure ?", :class => "btn btn-mini" %> <% end %> <% unless payment_method['defaultMethod'] %> <%= link_to "Delete", kaui_engine.delete_payment_method_account_path(:id => @account_id, :params => { :payment_method_id => payment_method['id'] }), :method => "DELETE", :confirm => "Are you sure ?", :class => "btn btn-mini" %> <% end %>