Sha256: 682325e56ef6998b1f4814eaa9dc8fdaf9655dc2ad9a9c6d6038c6071e39bc39

Contents?: true

Size: 1.22 KB

Versions: 7

Compression:

Stored size: 1.22 KB

Contents

<fieldset data-hook="paypal">
  <legend align="center"><%= Spree.t(:transaction, :scope => :paypal) %></legend>

  <div class="row">
    <div class="alpha six columns">
      <dl>
        <dt><%= Spree.t(:payer_id, :scope => :paypal) %>:</dt>
        <dd><%= payment.source.payer_id %></dd>

        <dt><%= Spree.t(:token, :scope => :paypal) %>:</dt>
        <dd><%= payment.source.token %></dd>

        <dt><%= Spree.t(:transaction_id) %>:</dt>
        <dd><%= payment.source.transaction_id %></dd>
      </dl>
    </div>

    <% if payment.source.state != 'refunded' %>
      <%= button_link_to Spree.t('actions.refund', scope: :paypal), spree.paypal_refund_admin_order_payment_path(@order, payment), icon: 'money' %>
    <% else %>
      <div class="alpha six columns">
        <dl>
          <dt><%= Spree.t(:state, :scope => :paypal) %>:</dt>
          <dd><%= payment.source.state.titleize %></dd>

          <dt><%= Spree.t(:refunded_at, :scope => :paypal) %>:</dt>
          <dd><%= pretty_time(payment.source.refunded_at) %></dd>

          <dt><%= Spree.t(:refund_transaction_id, :scope => :paypal) %>:</dt>
          <dd><%= payment.source.refund_transaction_id %></dd>
        </dl>
      </div>
    <% end %>
  </div>
</fieldset>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spree_paypal_api_checkout-0.0.6 app/views/spree/admin/payments/source_views/_paypal.html.erb
spree_paypal_api_checkout-0.0.5 app/views/spree/admin/payments/source_views/_paypal.html.erb
spree_paypal_api_checkout-0.0.4 app/views/spree/admin/payments/source_views/_paypal.html.erb
spree_paypal_api_checkout-0.0.3 app/views/spree/admin/payments/source_views/_paypal.html.erb
spree_paypal_api_checkout-0.0.2 app/views/spree/admin/payments/source_views/_paypal.html.erb
spree_paypal_api_checkout-0.0.1 app/views/spree/admin/payments/source_views/_paypal.html.erb
spree_paypal_api_checkout-0.0.0 app/views/spree/admin/payments/source_views/_paypal.html.erb