Method: ActiveMerchant::Billing::PayGateXmlGateway#refund

Defined in:
lib/active_merchant/billing/gateways/pay_gate_xml.rb

#refund(money, authorization, options = {}) ⇒ Object



186
187
188
189
190
191
192
# File 'lib/active_merchant/billing/gateways/pay_gate_xml.rb', line 186

def refund(money, authorization, options = {})
  action = 'refundtx'

  options[:money] = money
  options[:authorization] = authorization
  commit(action, build_request(action, options))
end