Method: ActiveMerchant::Billing::CardStreamGateway#capture

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

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



163
164
165
166
167
168
169
170
# File 'lib/active_merchant/billing/gateways/card_stream.rb', line 163

def capture(money, authorization, options = {})
  post = {}
  add_pair(post, :xref, authorization)
  add_pair(post, :amount, localized_amount(money, options[:currency] || currency(money)), required: true)
  add_remote_address(post, options)

  commit('CAPTURE', post)
end