Displaying 1 result from an estimated 1 matches for "processing_payment".
2008 Feb 28
2
random exception driving me crazy: SecurityError (Insecure: can't modify array)
...me page with warning message
end
end
order.rb
# we use acts_as_state_machine to provide order state
acts_as_state_machine :initial => :pending, :column => :status
# order has been created, but no payment has been received
state :pending
# process the payment with active_merchant
state :processing_payment, :after => :process_with_active_merchant
# charge the user''s credit card
event :process_payment do
transitions :from => :pending, :to => :processing_payment
end
def after_create
# the following method raises an exception if we fail to charge the users
# credit card, preve...