Sha256: 47807af7fa0e04fe6428ca34b6d618df2bcc0d807f8e0832d4e6c09462126026

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

<% prefix = "payment_source[#{id}]" %>

<%= render partial: "spree/shared/braintree_errors" %>

<div class="hosted-fields">
  <div class="field" data-hook="card_number">
    <%= label_tag "card_number#{id}", Spree::CreditCard.human_attribute_name(:number), class: "required" %>
    <div class="input" id="card_number<%= id %>"></div>
  </div>

  <div class="field" data-hook="card_expiration">
    <%= label_tag "card_expiry#{id}", Spree::CreditCard.human_attribute_name(:expiration), class: "required" %>
    <div class="input" id="card_expiry<%= id %>"></div>
  </div>

  <div class="field" data-hook="card_code">
    <%= label_tag "card_code#{id}", Spree::CreditCard.human_attribute_name(:card_code), class: "required" %>
    <div class="input" id="card_code<%= id %>"></div>

    <a href="/content/cvv" class="info cvvLink" target="_blank">
      (<%= Spree.t(:what_is_this) %>)
    </a>
  </div>

  <div class="clear"></div>
  <input type="hidden" name="<%= prefix %>[payment_type]" value="<%= SolidusPaypalBraintree::Source::CREDIT_CARD %>">
  <input type="hidden" id="payment_method_nonce" name="<%= prefix %>[nonce]">
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_paypal_braintree-0.4.0 app/views/spree/shared/_braintree_hosted_fields.html.erb
solidus_paypal_braintree-0.3.0 app/views/spree/shared/_braintree_hosted_fields.html.erb