lib/active_merchant/billing/gateways/paymentez.rb in activemerchant-1.81.0 vs lib/active_merchant/billing/gateways/paymentez.rb in activemerchant-1.82.0

- old
+ new

@@ -74,11 +74,14 @@ post[:order] = {amount: amount(money).to_f} if money commit_transaction('capture', post) end - def refund(_money, authorization, options = {}) - void(authorization, options) + def refund(money, authorization, options = {}) + post = {transaction: {id: authorization}} + post[:order] = {amount: amount(money).to_f} if money + + commit_transaction('refund', post) end def void(authorization, _options = {}) post = { transaction: { id: authorization } } commit_transaction('refund', post)