Sha256: 5ab406636f673450ff11e4931a6e8505bf6ccc0a9a66aabbde6c65a5dfaa54f3

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 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 %>
      </dl>
    </div>
  </div>
</fieldset>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_paypal_braintree-1.0.0 lib/views/backend/spree/admin/payments/source_views/_paypal_braintree.html.erb