Method: ActiveMerchant::Billing::PlugnpayGateway#capture

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

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



134
135
136
137
138
139
140
141
142
143
# File 'lib/active_merchant/billing/gateways/plugnpay.rb', line 134

def capture(money, authorization, options = {})
  post = PlugnpayPostData.new
  
  post[:orderID] = authorization
  
  add_amount(post, money, options)
  add_customer_data(post, options)
   
  commit(:capture, post)
end