class Payfort::Charge

Public Class Methods

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