<% payment_methods.each_with_index do |payment, index| %>
<% inputs = content_tag :div do %>
<% end %>
" id="<%= payment.slug %>">
<%= payment.description.translate %>
<% if payment.options[:type] == 'paypal' %>
<%= form_tag(plugins_ecommerce_checkout_pay_by_paypal_path(order: @cart.slug), :method => "post") do %>
<%= inputs %>
<% end %>
<% end %>
<% if payment.options[:type] == 'bank_transfer' %>
<%= form_tag(plugins_ecommerce_checkout_pay_by_bank_transfer_path(order: @cart.slug), :method => "post") do %>
- <%= t('.account_number', default: 'Account Number') %>: <%= payment.options[:bank_transfer_number_account] %>
- <%= t('.details_transfer', default: 'Details') %>: <%= payment.options[:bank_transfer_detail] %>
<%= inputs %>
<% end %>
<% end %>
<% if payment.options[:type] == 'credit_card' %>
<% end %>
<% if payment.options[:type] == 'authorize_net' %>
<%= form_tag(plugins_ecommerce_checkout_pay_by_authorize_net_path(order: @cart.slug), :method => "post") do %>
<%= inputs %>
<% end %>
<% end %>
<% if payment.options[:type] == 'stripe' %>
<%= form_tag(plugins_ecommerce_checkout_pay_by_stripe_path(order: @cart.slug), :method => "post") do %>
<% end %>
<% end %>
<% if(custom_method = ecommerce_custom_payment_methods[payment.options[:type].to_sym]).present? %>
<%= render custom_method[:payment_form_view_path], payment: payment, options: payment.options, cart: @cart %>
<% end %>
<% end %>
<%= content_tag(:div, 'No Payment Methods Defined', class: 'alert alert-danger') unless payment_methods.any? %>