Sha256: 0510ee81c82f982a67127754013437f1ca0b32d69b0dd75bc4c584d8e9d22a2a

Contents?: true

Size: 405 Bytes

Versions: 6

Compression:

Stored size: 405 Bytes

Contents

module Spree
  class Admin::PaypalCheckoutPaymentsController < Spree::Admin::BaseController
    before_action :load_order

    def index
      @payments = @order.payments.includes(:payment_method).where(:spree_payment_methods => { :name => 'Spree::Gateway::PayPalCheckout' })
    end

    private

    def load_order
      @order = Spree::Order.where(:number => params[:order_id]).first
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_paypal_api_checkout-0.0.5 app/controllers/spree/admin/paypal_checkout_payments_controller.rb
spree_paypal_api_checkout-0.0.4 app/controllers/spree/admin/paypal_checkout_payments_controller.rb
spree_paypal_api_checkout-0.0.3 app/controllers/spree/admin/paypal_checkout_payments_controller.rb
spree_paypal_api_checkout-0.0.2 app/controllers/spree/admin/paypal_checkout_payments_controller.rb
spree_paypal_api_checkout-0.0.1 app/controllers/spree/admin/paypal_checkout_payments_controller.rb
spree_paypal_api_checkout-0.0.0 app/controllers/spree/admin/paypal_checkout_payments_controller.rb