Class: Spree::PaywayV2CardPopupsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/spree/payway_v2_card_popups_controller.rb

Instance Method Summary collapse

Instance Method Details

#load_paymentObject



16
17
18
# File 'app/controllers/spree/payway_v2_card_popups_controller.rb', line 16

def load_payment
  @payment = ::Spree::Payment.find_by(number: params[:payment_number])
end

#showObject



6
7
8
9
10
11
12
13
14
# File 'app/controllers/spree/payway_v2_card_popups_controller.rb', line 6

def show
  if @payment.present?
    options = {
      app_checkout: true
    }

    @client_redirect = ::Vpago::PaywayV2::Checkout.new(@payment, options)
  end
end