Method: ActiveMerchant::Billing::NetpayGateway#capture

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

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

Capture an authorization



77
78
79
80
81
82
83
# File 'lib/active_merchant/billing/gateways/netpay.rb', line 77

def capture(money, authorization, options = {})
  post = {}
  add_order_id(post, order_id_from(authorization))
  add_amount(post, money, options)

  commit('PostAuth', post, options)
end