Sha256: f18f92c1ed4947a6ffb3ea7565e4b612b7f33dbf5743fba32374b26727589847

Contents?: true

Size: 1.37 KB

Versions: 4

Compression:

Stored size: 1.37 KB

Contents

<fieldset data-hook="credit_card">
  <legend align="center"><%= SolidusPaypalBraintree::Gateway.model_name.human %></legend>

  <div class="row">
    <div class="alpha six columns">
      <dl>
        <dt><%= I18n.t("spree.identifier") %>:</dt>
        <dd><%= payment.number %></dd>

        <dt><%= I18n.t("spree.response_code") %>:</dt>
        <dd><%= braintree_transaction_link(payment) %></dd>

        <% if payment.source.token.present? %>
          <dt><%= t('solidus_paypal_braintree.token') %>:</dt>
          <dd><%= payment.source.token %></dd>
        <% else %>
          <dt><%= t('solidus_paypal_braintree.nonce') %>:</dt>
          <dd><%= payment.source.nonce %></dd>
        <% end %>

        <dt><%= t('solidus_paypal_braintree.payment_type.label') %>:</dt>
        <dd><%= payment.source.friendly_payment_type %></dd>

        <% if payment.source.credit_card? %>
          <dt><%= Spree::CreditCard.human_attribute_name(:card_type) %>:</dt>
          <dd><%= payment.source.card_type %></dd>

          <dt><%= Spree::CreditCard.human_attribute_name(:last_digits) %>:</dt>
          <dd><%= payment.source.last_digits %></dd>
        <% end %>

        <% if payment.source.paypal? %>
          <dt><%= I18n.t('spree.paypal_funding_source') %>:</dt>
          <dd><%= payment.source.display_paypal_funding_source %></dd>
        <% end %>
      </dl>
    </div>
  </div>
</fieldset>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_paypal_braintree-1.2.0 lib/views/backend/spree/admin/payments/source_views/_paypal_braintree.html.erb
solidus_paypal_braintree-1.1.2 lib/views/backend/spree/admin/payments/source_views/_paypal_braintree.html.erb
solidus_paypal_braintree-1.1.1 lib/views/backend/spree/admin/payments/source_views/_paypal_braintree.html.erb
solidus_paypal_braintree-1.1.0 lib/views/backend/spree/admin/payments/source_views/_paypal_braintree.html.erb