class Hyperwallet::Payment

Public Class Methods

all() click to toggle source
# File lib/hyperwallet/payment.rb, line 4
def self.all
  res = Hyperwallet.request(:get, '/payments')
  convert_to_hyperwallet_object(res, Payment)
end
create(params={}) click to toggle source
# File lib/hyperwallet/payment.rb, line 14
def self.create(params={})
  res = Hyperwallet.request(:post, '/payments', params)
  convert_to_hyperwallet_object(res, Payment)
end
find(key) click to toggle source
# File lib/hyperwallet/payment.rb, line 9
def self.find(key)
  res = Hyperwallet.request(:get, "/payments/#{key}")
  convert_to_hyperwallet_object(res, Payment)
end