class Razorpay::Customer

Customer API allows you to create and fetch customers on Razorpay

Public Class Methods

all(options = {}) click to toggle source
# File lib/razorpay/customer.rb, line 23
def self.all(options = {})
  request.all options
end
create(options) click to toggle source
# File lib/razorpay/customer.rb, line 11
def self.create(options)
  request.create options
end
edit(id, options = {}) click to toggle source
# File lib/razorpay/customer.rb, line 19
def self.edit(id, options = {})
  request.put id, options
end
fetch(id) click to toggle source
# File lib/razorpay/customer.rb, line 15
def self.fetch(id)
  request.fetch id
end
request() click to toggle source
# File lib/razorpay/customer.rb, line 7
def self.request
  Razorpay::Request.new('customers')
end