lib/payments/payment_with_session.rb in paytureman-0.5.0 vs lib/payments/payment_with_session.rb in paytureman-0.7.0
- old
+ new
@@ -1,25 +1,25 @@
module Paytureman
class PaymentWithSession < Payment
- def initialize(order_id, amount, ip, session_id)
+ def initialize(order_id, amount, session_id, gateway = nil)
+ super(order_id, amount, gateway)
@session_id = session_id
- super(order_id, amount, ip)
end
def save_to_memento(memento)
memento.session_id = session_id
super(memento)
end
def self.new_from_memento(memento)
- new(memento.order_id, memento.amount, memento.ip, memento.session_id)
+ new(memento.order_id, memento.amount, memento.session_id, memento.gateway)
end
protected
attr_accessor :session_id
end
-end
\ No newline at end of file
+end