Sha256: 274549453b8fbae36ee13139fcd3ebcd811a8a784cb7306a62b17cca611649b1

Contents?: true

Size: 1.82 KB

Versions: 45

Compression:

Stored size: 1.82 KB

Contents

<%= image_tag 'credit_cards/credit_card.gif', :id => 'credit-card-image' %>
<% param_prefix = "payment_source[#{payment_method.id}]" %>

<p class="field">
  <%= label_tag "name_on_card_#{payment_method.id}", Spree.t(:name_on_card) %><span class="required">*</span><br />
  <%= text_field_tag "#{param_prefix}[name]", "#{@order.billing_firstname} #{@order.billing_lastname}", { id: "name_on_card_#{payment_method.id}"} %>
</p>

<p class="field" data-hook="card_number">
  <%= label_tag "card_number", Spree.t(:card_number) %><span class="required">*</span><br />
  <% options_hash = Rails.env.production? ? {:autocomplete => 'off'} : {} %>
  <%= text_field_tag "#{param_prefix}[number]", '', options_hash.merge(:id => 'card_number', :class => 'required cardNumber', :size => 19, :maxlength => 19, :autocomplete => "off") %>
  &nbsp;
  <span id="card_type" style="display:none;">
    ( <span id="looks_like" ><%= Spree.t(:card_type_is) %> <span id="type"></span></span>
      <span id="unrecognized"><%= Spree.t(:unrecognized_card_type) %></span>
    )
  </span>
</p>

<p class="field" data-hook="card_expiration">
  <%= label_tag "card_expiry", Spree.t(:expiration) %><span class="required">*</span><br />
  <%= text_field_tag "#{param_prefix}[expiry]", '', :id => 'card_expiry', :class => "required cardExpiry", :placeholder => "MM / YY" %>
</p>

<p class="field" data-hook="card_code">
  <%= label_tag "card_code", Spree.t(:card_code) %><span class="required">*</span><br />
  <%= text_field_tag "#{param_prefix}[verification_value]", '', options_hash.merge(:id => 'card_code', :class => 'required cardCode', :size => 5) %>
  <%= link_to "(#{Spree.t(:what_is_this)})", spree.content_path('cvv'), :target => '_blank', "data-hook" => "cvv_link", :id => "cvv_link" %>
</p>

<%= hidden_field_tag "#{param_prefix}[cc_type]", '', :id => "cc_type", :class => 'ccType' %>

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
spree_frontend-2.4.10 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.3.13 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.2.14 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.4.9 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.3.12 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.2.13 app/views/spree/checkout/payment/_gateway.html.erb
solidus_frontend-1.0.0.pre2 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.4.8 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.3.11 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.2.12 app/views/spree/checkout/payment/_gateway.html.erb
solidus_frontend-1.0.0.pre app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.4.7 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.3.10 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.4.6 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.3.9 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.2.11 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.2.10 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.3.8 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.4.5 app/views/spree/checkout/payment/_gateway.html.erb
spree_frontend-2.4.4 app/views/spree/checkout/payment/_gateway.html.erb