Module: Payg
- Defined in:
- lib/payg.rb,
lib/payg/order.rb,
lib/payg/entity.rb,
lib/payg/request.rb,
lib/payg/utility.rb,
lib/payg/constants.rb,
lib/payg/errors/payg_error.rb,
lib/payg/errors/server_error.rb,
lib/payg/errors/gateway_error.rb,
lib/payg/errors/bad_request_error.rb
Overview
Version and other constants are defined here
Defined Under Namespace
Classes: BadRequestError, Entity, Error, GatewayError, Order, Request, ServerError, Utility
Constant Summary collapse
- BASE_URI =
'https://paygapi.payg.in/payment/api/'.freeze
- TEST_URL =
'https://paygapi.payg.in/payment/api/'.freeze
- VERSION =
'0.1.2'.freeze
Class Attribute Summary collapse
-
.auth ⇒ Object
Returns the value of attribute auth.
Class Method Summary collapse
Class Attribute Details
.auth ⇒ Object
Returns the value of attribute auth.
10 11 12 |
# File 'lib/payg.rb', line 10 def auth @auth end |
Class Method Details
.initialize(key, token, merchant_id) ⇒ Object
13 14 15 |
# File 'lib/payg.rb', line 13 def self.initialize(key, token, merchant_id) self.auth = {key: key, token: token, merchant_id: merchant_id} end |