Sha256: c55f40c1a9525c7213d2202369b271170717fe577d74f8b3eaebdf4365305bae

Contents?: true

Size: 286 Bytes

Versions: 7

Compression:

Stored size: 286 Bytes

Contents

module Workarea
  decorate Storefront::Checkout::PlaceOrderController, with: 'sezzle' do
    def place_order
      if params[:payment] == 'sezzle' && !current_checkout.payment.sezzle?
        redirect_to start_sezzle_path and return
      else
        super
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
workarea-sezzle-1.0.6 app/controllers/workarea/storefront/checkout/place_order_controller.decorator
workarea-sezzle-1.0.5 app/controllers/workarea/storefront/checkout/place_order_controller.decorator
workarea-sezzle-1.0.4 app/controllers/workarea/storefront/checkout/place_order_controller.decorator
workarea-sezzle-1.0.3 app/controllers/workarea/storefront/checkout/place_order_controller.decorator
workarea-sezzle-1.0.2 app/controllers/workarea/storefront/checkout/place_order_controller.decorator
workarea-sezzle-1.0.1 app/controllers/workarea/storefront/checkout/place_order_controller.decorator
workarea-sezzle-1.0.0 app/controllers/workarea/storefront/checkout/place_order_controller.decorator