Sha256: d39b6a5369e374f197ca6766bdae26b4c614aaa877b61fb795f45f94916a9a41

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

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

<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.2.0 app/views/spree/shared/_braintree_hosted_fields.html.erb
solidus_paypal_braintree-0.1.0 app/views/spree/shared/_braintree_hosted_fields.html.erb