Class: Stall::Checkout::PaymentReturnCheckoutStep

Inherits:
Step
  • Object
show all
Includes:
Stall::CartHelper
Defined in:
lib/stall/checkout/payment_return_checkout_step.rb

Instance Attribute Summary

Attributes inherited from Step

#cart

Instance Method Summary collapse

Methods included from Stall::CartHelper

#current_cart, #current_customer

Methods inherited from Step

#identifier, #initialize, #inject, #is?, #process, #save, #skip?, #valid?

Constructor Details

This class inherits a constructor from Stall::Checkout::Step

Instance Method Details

#allow_inactive_carts?Boolean

When we access this step, the cart is “inactive”, since it is paid, so we force processing the cart.

Returns:

  • (Boolean)


13
14
15
# File 'lib/stall/checkout/payment_return_checkout_step.rb', line 13

def allow_inactive_carts?
  true
end

#prepareObject



6
7
8
# File 'lib/stall/checkout/payment_return_checkout_step.rb', line 6

def prepare
  remove_cart_from_cookies(cart.identifier)
end