Sha256: 1b18508dfe54ac963df25407e0fa8dbbcabeb122514d890e7ff80c948975e208
Contents?: true
Size: 1.77 KB
Versions: 5
Compression:
Stored size: 1.77 KB
Contents
<div class="payment-gateway"> <% param_prefix = "payment_source[#{payment_method.id}]" %> <div class="payment-gateway-fields"> <div class="mb-4 payment-gateway-field checkout-content-inner-field"> <%= text_field_tag "#{param_prefix}[name]", "#{@order.bill_address_firstname} #{@order.bill_address_lastname}", { id: "name_on_card", class: 'spree-flat-input', placeholder: Spree.t(:name_on_card)} %> </div> <div class="mb-4 payment-gateway-field checkout-content-inner-field" data-hook="card_number"> <% options_hash = Rails.env.production? ? {autocomplete: 'off'} : {} %> <%= text_field_tag "#{param_prefix}[number]", '', options_hash.merge(id: 'card_number', class: 'spree-flat-input cardNumber', size: 19, maxlength: 19, autocomplete: "off", placeholder: Spree.t(:card_number)) %> <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> </div> <div class="payment-gateway-half-fields d-flex justify-content-between"> <div class="payment-gateway-field checkout-content-inner-field" data-hook="card_expiration"> <%= text_field_tag "#{param_prefix}[expiry]", '', id: 'card_expiry', class: 'spree-flat-input cardExpiry', placeholder: "MM/YYYY" %> </div> <div class="payment-gateway-field checkout-content-inner-field" data-hook="card_code"> <%= text_field_tag "#{param_prefix}[verification_value]", '', options_hash.merge(id: 'card_code', class: 'spree-flat-input cardCode', size: 5, placeholder: Spree.t(:cvv)) %> </div> </div> <%= hidden_field_tag "#{param_prefix}[cc_type]", '', id: "cc_type", class: 'ccType' %> </div> </div>
Version data entries
5 entries across 5 versions & 1 rubygems