Sha256: 81523b80d00343f55ecbe66335aa25862bc82eaa8ecaa63d5daae2e535bffa39

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 Bytes

Contents

require 'razorpay/card'
require 'razorpay/order'
require 'razorpay/errors'
require 'razorpay/refund'
require 'razorpay/invoice'
require 'razorpay/payment'
require 'razorpay/utility'
require 'razorpay/customer'
require 'razorpay/constants'
require 'razorpay/collection'
require 'razorpay/virtual_account'

# Base Razorpay module
module Razorpay
  class << self
    attr_accessor :auth, :custom_headers
  end

  def self.setup(key_id, key_secret)
    self.auth = { username: key_id, password: key_secret }
  end

  def self.headers=(headers = {})
    self.custom_headers = headers
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
razorpay-2.1.0 lib/razorpay.rb
razorpay-2.1.0.pre lib/razorpay.rb