class Payfort::Customer

Public Class Methods

all() click to toggle source
# File lib/payfort/customer.rb, line 12
def self.all
  Payfort.get(Payfort.api_url('customers/'))
end
create(params={}) click to toggle source
# File lib/payfort/customer.rb, line 4
def self.create(params={})
  Payfort.post(Payfort.api_url('customers/'), params)
end
get(id) click to toggle source
# File lib/payfort/customer.rb, line 8
def self.get(id)
  Payfort.get(Payfort.api_url('customers/' + id.to_s))
end