Sha256: 66a534c2565621eda9fe433ee16c16499b02201ffc0f2866f39255475d0fa381
Contents?: true
Size: 1.77 KB
Versions: 21
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
21 entries across 21 versions & 1 rubygems