lib/braintree/transaction.rb in braintree-2.62.0 vs lib/braintree/transaction.rb in braintree-2.63.0

- old
+ new

@@ -177,15 +177,15 @@ def self.hold_in_escrow!(id) return_object_or_raise(:transaction) { hold_in_escrow(id) } end - def self.refund(id, amount = nil) - Configuration.gateway.transaction.refund(id, amount) + def self.refund(id, amount_or_options = nil) + Configuration.gateway.transaction.refund(id, amount_or_options) end - def self.refund!(id, amount = nil) - return_object_or_raise(:transaction) { refund(id, amount) } + def self.refund!(id, amount_or_options = nil) + return_object_or_raise(:transaction) { refund(id, amount_or_options) } end def self.sale(attributes) Configuration.gateway.transaction.sale(attributes) end