<% param_prefix = "payment_source[#{payment_method.id}]" %>

<%= label_tag 'cielo_debt_name', Spree.t(:name_on_card) %>*
<%= text_field_tag "#{param_prefix}[name]", "#{@order.billing_firstname} #{@order.billing_lastname}", { id: 'cielo_debt_name', :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_debt_number', :class => 'form-control required cardNumber', :size => 19, :maxlength => 19, :autocomplete => 'off') %>  

<%= label_tag "card_expiry", Spree.t(:expiration) %>*
<%= text_field_tag "#{param_prefix}[expiry]", '', :id => 'cielo_debt_expiry', :class => 'form-control required cardExpiry', :placeholder => 'MM / YY' %>
<%= label_tag 'cielo_debt_code', Spree.t(:card_code) %>*
<%= text_field_tag "#{param_prefix}[verification_value]", '', options_hash.merge(:id => 'cielo_debt_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 "#{param_prefix}[cc_type]", '', :id => 'cielo_debt_cc_type', :class => 'ccType' %>
<%= submit_tag Spree.t(:cielo_authorize), class: 'btn btn-lg btn-success primary', id: 'cielo_debt_authorize' %>