Sha256: 11636ea085159358f306103e4d83c5a305d0549621fab2e85a0a3bfd50894c74

Contents?: true

Size: 353 Bytes

Versions: 1

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

module OrderDecorator
  Spree::Order.class_eval do
    checkout_flow do
      go_to_state :address
      go_to_state :delivery
      go_to_state :payment
      go_to_state :complete
    end

    state_machine do
      event :payment_failed do
        reset
        transition payment: :payment
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_payu_latam-0.1.0 app/models/order_decorator.rb