Class: Payture::Wallet

Inherits:
API
  • Object
show all
Defined in:
lib/payture/wallet.rb

Direct Known Subclasses

Card, User

Constant Summary collapse

PATH_INIT =
'/vwapi/Init'
PATH_PAY =
'/vwapi/Pay'

Instance Method Summary collapse

Methods inherited from API

#host, #initialize, #request

Constructor Details

This class inherits a constructor from Payture::API

Instance Method Details

#init(vwid, data) ⇒ Object

PATH_CHARGE = ‘/vwapi/Charge’



7
8
9
# File 'lib/payture/wallet.rb', line 7

def init(vwid, data)
  self.request(PATH_INIT, vwid, data)
end

#pay(vwid, data) ⇒ Object



11
12
13
# File 'lib/payture/wallet.rb', line 11

def pay(vwid, data)
  self.request(PATH_PAY, vwid, data)
end