class Paynl::Config
Public Class Methods
getApiToken()
click to toggle source
getApiToken - Retrieves Pay.nl api token
# File lib/paynl/config.rb, line 20 def self.getApiToken return @@apiToken end
getApiUrl(endpoint, version = nil)
click to toggle source
getApiUrl - Get constructed API Url for the given endpoint
# File lib/paynl/config.rb, line 50 def self.getApiUrl(endpoint, version = nil) unless !version.nil? version = @@apiVersion end return @@apiBase + '/v' + version.to_s + '/' + endpoint + '/json' end
getApiVersion()
click to toggle source
getApiVersion - Retrieves Pay.nl Api
version
# File lib/paynl/config.rb, line 40 def self.getApiVersion return @@apiVersion end
getServiceId()
click to toggle source
getServiceId - Retrieves Pay.nl Service Id
# File lib/paynl/config.rb, line 30 def self.getServiceId return @@serviceId end
getTokenCode()
click to toggle source
getTokenCode - Retrieves Pay.nl tokencode
# File lib/paynl/config.rb, line 10 def self.getTokenCode return @@tokenCode end
setApiToken(apiToken)
click to toggle source
setApiToken - Sets Pay.nl api token
# File lib/paynl/config.rb, line 25 def self.setApiToken(apiToken) @@apiToken = apiToken end
setApiVersion(apiVersion)
click to toggle source
setApiVersion - Set the Pay.nl Api
version
# File lib/paynl/config.rb, line 45 def self.setApiVersion(apiVersion) @@apiVersion = apiVersion end
setServiceId(serviceId)
click to toggle source
setServiceId - Set the Pay.nl Service Id
# File lib/paynl/config.rb, line 35 def self.setServiceId(serviceId) @@serviceId = serviceId end
setTokenCode(tokenCode)
click to toggle source
setTokenCode - Sets Pay.nl tokencode
# File lib/paynl/config.rb, line 15 def self.setTokenCode(tokenCode) @@tokenCode = tokenCode end