<% if display_payment_methods_list %>
<%= label_tag 'saved_payment_methods', I18n.t("braintree.checkout.saved_payment_method.#{payment_method_type}") %>
<%= select_tag "saved_payment_methods_for_#{payment_method.id}", options_from_braintree_payments(@methods, true), class: 'form-control saved-payment-methods' %>
<% unless paypal %>
<% end %>
<% end %>
<% if paypal %>
<% else %>
<% end %>
<% if payment_method.try(:preferred_3dsecure) == "true" %>
<%= email_field_tag :email, @order.email, class: 'form-control' %>
<% end %>
<% if hosted || dropin %>
<% if hosted %>
<%= label_tag 'card_number_label', (payment_method&.preferred_number_placeholder || 'Card Number') %>
*
<% if payment_method&.preferred_number_selector&.present? %>
" class="form-control">
<% else %>
<% end %>
<%= label_tag 'cvv_label', payment_method.try(:preferred_cvv_placeholder) || 'Cvv code' %>
*
<% if payment_method&.preferred_cvv_selector&.present? %>
" class="form-control">
<% else %>
<% end %>
<%= label_tag 'expiration_date_label', payment_method.try(:preferred_expiration_date_placeholder) || 'Card Expiration Date' %>
*
<% if payment_method&.preferred_expiration_date_selector&.present? %>
" class="form-control">
<% else %>
<% end %>
<% elsif dropin %>
<%= Spree.t(:credit_card_veryfied_successfully) %>
<%= Spree.t(:verify_credit_card_failed) %>
<% end %>
<% if hosted %>
<% elsif dropin %>
<% end %>
<% if payment_method.try(:preferred_3dsecure) == "true" %>
<%= render partial: 'spree/checkout/payment/braintree_vzero/three_d_secure',
locals: { payment_method: payment_method, hosted: hosted, dropin: dropin }
%>
<% else %>
<%= render partial: 'spree/checkout/payment/braintree_vzero/non_three_d_secure',
locals: { payment_method: payment_method, hosted: hosted, dropin: dropin }
%>
<% end %>