Class: Paymaya::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/paymaya/configuration.rb

Constant Summary collapse

SANDBOX_BASE_URL =
'https://pg-sandbox.paymaya.com'.freeze
PROD_BASE_URL =
'https://pg.paymaya.com'.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#base_urlObject



11
12
13
14
15
# File 'lib/paymaya/configuration.rb', line 11

def base_url
  return @base_url unless @base_url.nil?
  return SANDBOX_BASE_URL if mode == :sandbox
  PROD_BASE_URL
end

#checkout_public_keyObject

Returns the value of attribute checkout_public_key.



4
5
6
# File 'lib/paymaya/configuration.rb', line 4

def checkout_public_key
  @checkout_public_key
end

#checkout_secret_keyObject

Returns the value of attribute checkout_secret_key.



4
5
6
# File 'lib/paymaya/configuration.rb', line 4

def checkout_secret_key
  @checkout_secret_key
end

#modeObject



17
18
19
20
# File 'lib/paymaya/configuration.rb', line 17

def mode
  return @mode unless @mode.nil?
  :sandbox
end

#payment_vault_public_keyObject

Returns the value of attribute payment_vault_public_key.



4
5
6
# File 'lib/paymaya/configuration.rb', line 4

def payment_vault_public_key
  @payment_vault_public_key
end

#payment_vault_secret_keyObject

Returns the value of attribute payment_vault_secret_key.



4
5
6
# File 'lib/paymaya/configuration.rb', line 4

def payment_vault_secret_key
  @payment_vault_secret_key
end