lib/finix/resources/authorization.rb in finix-0.15 vs lib/finix/resources/authorization.rb in finix-0.16

- old
+ new

@@ -9,9 +9,12 @@ self.void_me = true self.save end def capture(attrs={}) + if attrs['capture_amount'].nil? + attrs['capture_amount'] = self.amount + end self.attributes = self.attributes.merge attrs self.save end end end