<%= Spree.t(:payment_information) %>

<% if @payment_sources.present? %>
<%= radio_button_tag 'use_existing_card', 'yes', true %> <%= radio_button_tag 'use_existing_card', 'no' %>

<% @payment_sources.each do |card| %> <% end %>
<%= 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 %> <%= render partial: 'spree/checkout/payment/storecredit' %>

<%= form.label :coupon_code %> <%= form.text_field :coupon_code, :class => 'form-control' %>

<%= submit_tag Spree.t(:save_and_continue), class: 'btn btn-lg btn-success primary' %>