Method: ActiveMerchant::Billing::IppGateway#capture

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

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



56
57
58
59
60
61
62
63
64
# File 'lib/active_merchant/billing/gateways/ipp.rb', line 56

def capture(money, authorization, options = {})
  commit('SubmitSingleCapture') do |xml|
    xml.Capture do
      xml.Receipt authorization
      add_amount(xml, money)
      add_credentials(xml)
    end
  end
end