Displaying 2 results from an estimated 2 matches for "process_payment".
2008 Feb 28
2
random exception driving me crazy: SecurityError (Insecure: can't modify array)
..._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, prevents the order from being saved.
self.process_payment!
# some other post-processing tasks
self.send_ord...
2008 Jun 12
2
SslRequirement Problem
Hello everyone,
I''m pretty new to the RoR''s thing and am having a problem setting up
SslRequirement plugin.
I have installed the SslRequirement plugin and added it to my
application_controller.rb with include SslRequirement
However, when I try and do "ssl_required :process_payment"
I get the following error:
undefined method `ssl_required'' for PaymentController:Class
For some reason it''s not seeing the ssl_required method.. any ideas??
thanks,
nyte
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You...