Module: Razorpay

Defined in:
lib/razorpay.rb,
lib/razorpay/card.rb,
lib/razorpay/item.rb,
lib/razorpay/plan.rb,
lib/razorpay/addon.rb,
lib/razorpay/order.rb,
lib/razorpay/entity.rb,
lib/razorpay/refund.rb,
lib/razorpay/invoice.rb,
lib/razorpay/payment.rb,
lib/razorpay/qr_code.rb,
lib/razorpay/request.rb,
lib/razorpay/utility.rb,
lib/razorpay/customer.rb,
lib/razorpay/transfer.rb,
lib/razorpay/constants.rb,
lib/razorpay/collection.rb,
lib/razorpay/settlement.rb,
lib/razorpay/fund_account.rb,
lib/razorpay/payment_link.rb,
lib/razorpay/subscription.rb,
lib/razorpay/payment_method.rb,
lib/razorpay/virtual_account.rb,
lib/razorpay/errors/server_error.rb,
lib/razorpay/errors/gateway_error.rb,
lib/razorpay/errors/razorpay_error.rb,
lib/razorpay/errors/bad_request_error.rb,
lib/razorpay/subscription_registration.rb

Overview

Version and other constants are defined here

Defined Under Namespace

Classes: Addon, BadRequestError, Card, Collection, Customer, Entity, Error, FundAccount, GatewayError, Invoice, Item, Order, Payment, PaymentLink, PaymentMethods, Plan, QrCode, Refund, Request, ServerError, Settlement, Subscription, SubscriptionRegistration, Transfer, Utility, VirtualAccount

Constant Summary collapse

BASE_URI =
'https://api.razorpay.com/v1/'.freeze
TEST_URL =
'https://api.razorpay.com/'.freeze
VERSION =
'3.0.4'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.authObject

Returns the value of attribute auth.



27
28
29
# File 'lib/razorpay.rb', line 27

def auth
  @auth
end

.custom_headersObject

Returns the value of attribute custom_headers.



27
28
29
# File 'lib/razorpay.rb', line 27

def custom_headers
  @custom_headers
end

Class Method Details

.headers=(headers = {}) ⇒ Object



34
35
36
# File 'lib/razorpay.rb', line 34

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

.setup(key_id, key_secret) ⇒ Object



30
31
32
# File 'lib/razorpay.rb', line 30

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