<% if @wallet_payment_sources.present? %>
<%= radio_button_tag 'use_existing_card', 'yes', true %>
<%= radio_button_tag 'use_existing_card', 'no' %>
<% @wallet_payment_sources.each do |wallet_payment_source| %>
<%=
render(
partial: "spree/checkout/existing_payment/#{wallet_payment_source.payment_source.payment_method.partial_name}",
locals: {
wallet_payment_source: wallet_payment_source,
default: wallet_payment_source == @default_wallet_payment_source,
}
)
%>
<% end %>
<% end %>
<% @order.available_payment_methods.each do |method| %>
<% end %>
<% @order.available_payment_methods.each do |method| %>
-
<% end %>
<%= form.label :coupon_code %>
<%= form.text_field :coupon_code %>