Sha256: 9a194644fa02dbf295a9bd2f07dc8b3c9b96773850908c11fa1fa203b0d06822

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 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 => 'icon-dollar' %>
    <% 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

1 entries across 1 versions & 1 rubygems

Version Path
spree_paypal_express_mutalis-2.0.4 app/views/spree/admin/payments/source_views/_paypal.html.erb