module Pay2go

Constants

VERSION

Attributes

integration_mode[RW]

Public Class Methods

service_url() click to toggle source
# File lib/pay2go.rb, line 20
def self.service_url
  mode =  Pay2go.integration_mode
  case mode
    when :development
      "https://capi.pay2go.com/MPG/mpg_gateway"
    when :production
      "https://api.pay2go.com/MPG/mpg_gateway"
    else
      raise StandardError, "Integration mode set to an invalid value: #{mode}"
  end
end
setup() { |self| ... } click to toggle source
# File lib/pay2go.rb, line 33
def self.setup
  yield(self)
end