Method: ActiveMerchant::Billing::IppGateway#refund

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

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



66
67
68
69
70
71
72
73
74
# File 'lib/active_merchant/billing/gateways/ipp.rb', line 66

def refund(money, authorization, options = {})
  commit('SubmitSingleRefund') do |xml|
    xml.Refund do
      xml.Receipt authorization
      add_amount(xml, money)
      add_credentials(xml)
    end
  end
end