Class: Checkout::PaypalController

Inherits:
CheckoutController
  • Object
show all
Defined in:
app/controllers/gemgento/checkout/paypal_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



9
10
11
12
13
14
15
16
17
18
19
20
# File 'app/controllers/gemgento/checkout/paypal_controller.rb', line 9

def update

  if session[:quote]
    @quote = Quote.find(session[:quote])
    @quote.order_increment_id = params[:increment_id]
    @quote.mark_converted!
    redirect_to checkout_thank_you_path

  else
    redirect_to '/'
  end
end