lib/payments/payment_charged.rb in paytureman-0.5.0 vs lib/payments/payment_charged.rb in paytureman-0.7.0

- old
+ new

@@ -1,13 +1,13 @@ module Paytureman class PaymentCharged < PaymentWithSession def refund - if payture.refund(order_id, (self.amount*100).round) - PaymentRefunded.new(order_id, amount, ip, session_id) + if payture.refund(order_id, amount_in_cents) + PaymentRefunded.new(order_id, amount, session_id, gateway) else self end end end -end \ No newline at end of file +end