Module: Payture::Client::Vwapi

Included in:
Payture::Client
Defined in:
lib/payture/client/vwapi.rb

Constant Summary collapse

API_METHODS =
%w(Register Update Delete Add Activate Remove GetList Pay Refund PayStatus Init Unblock)

Instance Method Summary collapse

Instance Method Details

#charge(options = {}) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/payture/client/vwapi.rb', line 18

def charge options={}
  options = hash_to_camelcase(options)
  response = connection(false).get do |request|
    request.url('Charge', options)
  end
  return Response.create(response.body).charge
end