Sha256: d24e1f20e95ffe90e2e426c73e3f223f71197e99bc3b839b3826fa0696c2e247
Contents?: true
Size: 1.77 KB
Versions: 3
Compression:
Stored size: 1.77 KB
Contents
<div id="payment-request-button" data-stripe-config="<%= payment_method.stripe_config(current_order).to_json %>"></div> <%= image_tag 'credit_cards/credit_card.gif', id: 'credit-card-image' %> <% param_prefix = "payment_source[#{payment_method.id}]" %> <div class="field field-required"> <%= label_tag "name_on_card_#{payment_method.id}", t('spree.name_on_card') %> <%= text_field_tag "#{param_prefix}[name]", "#{@order.billing_firstname} #{@order.billing_lastname}", { id: "name_on_card_#{payment_method.id}", autocomplete: "cc-name" } %> </div> <div class="field field-required" data-hook="card_number"> <%= label_tag "card_number", t('spree.card_number') %> <div id="card_number"></div> <span id="card_type" style="display:none;"> ( <span id="looks_like" ><%= t('spree.card_type_is') %> <span id="type"></span></span> <span id="unrecognized"><%= t('spree.unrecognized_card_type') %></span> ) </span> </div> <div class="field field-required" data-hook="card_expiration"> <%= label_tag "card_expiry", t('spree.expiration') %> <div id="card_expiry"></div> </div> <div class="field field-required" data-hook="card_code"> <%= label_tag "card_cvc", t('spree.card_code') %> <div id="card_cvc"></div> <%= link_to "(#{t('spree.what_is_this')})", spree.cvv_path, target: '_blank', "data-hook" => "cvv_link", id: "cvv_link" %> </div> <div id="card-errors" class='errorExplanation' role="alert" style="display: none"></div> <% if @order.bill_address %> <%= fields_for "#{param_prefix}[address_attributes]", @order.bill_address do |f| %> <%= render partial: 'spree/address/form_hidden', locals: { form: f } %> <% end %> <% end %> <%= hidden_field_tag "#{param_prefix}[cc_type]", '', id: "cc_type", class: 'ccType' %> <script src="https://js.stripe.com/v3/"></script>
Version data entries
3 entries across 3 versions & 1 rubygems