lib/active_merchant/billing/gateways/paymentez.rb in activemerchant-1.121.0 vs lib/active_merchant/billing/gateways/paymentez.rb in activemerchant-1.123.0
- old
+ new
@@ -80,10 +80,11 @@
end
def refund(money, authorization, options = {})
post = { transaction: { id: authorization } }
post[:order] = { amount: amount(money).to_f } if money
+ add_more_info(post, options)
commit_transaction('refund', post)
end
def void(authorization, _options = {})
@@ -194,9 +195,13 @@
}.compact
return if auth_data.empty?
extra_params[:auth_data] = auth_data
+ end
+
+ def add_more_info(post, options)
+ post[:more_info] = options[:more_info] if options[:more_info]
end
def parse(body)
JSON.parse(body)
end