app/views/plugins/ecommerce/partials/checkout/_payments.html.erb in camaleon_ecommerce-1.1 vs app/views/plugins/ecommerce/partials/checkout/_payments.html.erb in camaleon_ecommerce-1.2

- old
+ new

@@ -1,8 +1,8 @@ <% if @cart.free_cart? %> <div class="free_order text-center col-md-12"> - <%= link_to('Complete Order', plugins_ecommerce_checkout_complete_free_order_url, class: 'btn btn-primary col-md-4 col-md-offset-4') %> + <%= link_to(t('.complete_order', default: 'Complete Order'), plugins_ecommerce_checkout_complete_free_order_url, class: 'btn btn-primary col-md-4 col-md-offset-4') %> </div> <% else %> <div id="e-payments-types" role="tabpanel"> <ul class="nav nav-tabs nav-justified" role="tablist"> <% (payment_methods = current_site.payment_methods.actives.all).each_with_index do |payment, index| %> @@ -112,9 +112,14 @@ data-description="Payment Products: <%= @cart.products_title %>" data-amount="<%= commerce_to_cents(@cart.total_amount) %>" data-locale="<%= I18n.locale %>"></script> <% 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 %> + </div> <% end %> <%= content_tag(:div, 'No Payment Methods Defined', class: 'alert alert-danger') unless payment_methods.any? %> </div> </div>