Class: PaymentGateway::Mundipagg::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/payment_gateway/mundipagg/base.rb

Direct Known Subclasses

Card, Customer, Order, Plan, Subscription

Defined Under Namespace

Classes: GatewayError, MissingAccessKeyError

Constant Summary collapse

API_URL =
'https://api.mundipagg.com/core/v1'

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



12
13
14
15
# File 'lib/payment_gateway/mundipagg/base.rb', line 12

def initialize
  access_key = PaymentGateway::Mundipagg.configuration.access_key
  raise MissingAccessKeyError if access_key.nil? || access_key.eql?('')
end