Method: WebPay::Charge#capture
- Defined in:
- lib/webpay/charge.rb
#capture(params = {}) ⇒ ChargeResponse
Capture a not captured charge specified by charge id.
38 39 40 41 42 |
# File 'lib/webpay/charge.rb', line 38 def capture(params = {}) req = WebPay::ChargeRequestWithAmount.create(params) raw_response = @client._request(:post, 'charges' + '/' + req.id.to_s + '/' + 'capture', req) WebPay::ChargeResponse.new(raw_response) end |