Sha256: 692d91bd2e226a8b3ff2a495a345b80aac332f72511bf95c16456628325bca14
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
module Spree CheckoutController.class_eval do before_filter :redirect_to_ebsin, :only => :update private def redirect_to_ebsin return unless params[:state] == "payment" @payment_method = Spree::PaymentMethod.find(params[:order][:payments_attributes].first[:payment_method_id]) if @payment_method && @payment_method.kind_of?(Spree::PaymentMethod::Ebsin) @order.update_from_params(params, permitted_checkout_attributes, request.headers.env) redirect_to gateway_ebsin_path(:gateway_id => @payment_method.id, :id => @order.number) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_ebsin-3.1.1.2 | app/controllers/spree/checkout_controller_decorator.rb |
spree_ebsin-3.1.1.1 | app/controllers/spree/checkout_controller_decorator.rb |