Class: Paymaya::Configuration
- Inherits:
-
Object
- Object
- Paymaya::Configuration
- 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
- #base_url ⇒ Object
-
#checkout_public_key ⇒ Object
Returns the value of attribute checkout_public_key.
-
#checkout_secret_key ⇒ Object
Returns the value of attribute checkout_secret_key.
- #mode ⇒ Object
-
#payment_vault_public_key ⇒ Object
Returns the value of attribute payment_vault_public_key.
-
#payment_vault_secret_key ⇒ Object
Returns the value of attribute payment_vault_secret_key.
Instance Attribute Details
#base_url ⇒ Object
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_key ⇒ Object
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_key ⇒ Object
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 |
#mode ⇒ Object
17 18 19 20 |
# File 'lib/paymaya/configuration.rb', line 17 def mode return @mode unless @mode.nil? :sandbox end |
#payment_vault_public_key ⇒ Object
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_key ⇒ Object
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 |