Sha256: f3fb984d93e15a0ebbaa2ea59dfd99bb0b2e7f183c9094aea0aae6b5fe722c14
Contents?: true
Size: 466 Bytes
Versions: 7
Compression:
Stored size: 466 Bytes
Contents
module Workarea decorate Storefront::Checkout::PlaceOrderController, with: 'paypal' do def place_order if params[:payment] == 'paypal' && current_checkout.payment.paypal? Paypal::UpdateOrder.new(current_checkout).perform super elsif params[:payment] == 'paypal' flash['info'] = t('workarea.storefront.paypal.errors.place_order') redirect_to checkout_payment_path else super end end end end
Version data entries
7 entries across 7 versions & 1 rubygems