<% param_prefix = "payment_source[#{payment_method.id}]" %>
<%= label_tag "name_on_card_#{payment_method.id}", Spree.t(:name_on_card) %>*
<%= text_field_tag "#{param_prefix}[name]", "#{@order.billing_firstname} #{@order.billing_lastname}", { id: "name_on_card_#{payment_method.id}", :class => 'form-control required'} %>
<%= label_tag 'card_number', Spree.t(:card_number) %>*
<% options_hash = Rails.env.production? ? {:autocomplete => 'off'} : {} %>
<%= text_field_tag "#{param_prefix}[number]", '', options_hash.merge(:id => 'cielo_card_number', :class => 'form-control required cardNumber', :size => 19, :maxlength => 19, :autocomplete => 'off') %>
<%= Spree.t(:unrecognized_card_type) %>
<%= label_tag "card_expiry", Spree.t(:expiration) %>*
<%= text_field_tag "#{param_prefix}[expiry]", '', :id => 'card_expiry', :class => 'form-control required cardExpiry', :placeholder => 'MM / YY' %>
<%= label_tag 'card_code', Spree.t(:card_code) %>*
<%= text_field_tag "#{param_prefix}[verification_value]", '', options_hash.merge(:id => 'card_code', :class => 'form-control required cardCode', :size => 5) %>
<%= link_to "(#{Spree.t(:what_is_this)})", spree.content_path('cvv'), :target => '_blank', 'data-hook' => 'cvv_link', :id => 'cvv_link' %>
<%= hidden_field_tag 'order[payments_attributes][][portions]', '1', :id => 'payment_portions' %>
<%= hidden_field_tag "#{param_prefix}[cc_type]", '', :id => 'cielo_credit_cc_type' %>