<% if @payment_sources.present? %>
<%= radio_button_tag 'use_existing_card', 'yes', true %>
<%= radio_button_tag 'use_existing_card', 'no' %>
<% @payment_sources.each do |card| %>
<%= card.name %> |
<%= card.display_number %> |
<%= card.month %> / <%= card.year %> |
<%= radio_button_tag "order[existing_card]", card.id, (card == @payment_sources.first), { class: "existing-cc-radio" } %>
|
<% end %>
<% end %>
<%= render partial: 'spree/checkout/payment/storecredit' %>
<% @order.available_payment_methods.each do |method| %>
-
<% end %>
<% @order.available_payment_methods.each do |method| %>
-
<% end %>
<% if Spree::Frontend::Config[:coupon_codes_enabled] %>
<%= form.label :coupon_code %>
<%= form.text_field :coupon_code, class: 'form-control' %>
<% end %>