Sha256: 590a3a1c5c22d3396774de592d6d82957f82ed9944241983cd3357c644ab1e6b
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
module Paynl class Config @@apiToken='' @@tokenCode='' @@serviceId='' @@apiBase='https://rest-api.pay.nl' @@apiVersion=5 # getTokenCode - Retrieves Pay.nl tokencode def self.getTokenCode return @@tokenCode end # setTokenCode - Sets Pay.nl tokencode def self.setTokenCode(tokenCode) @@tokenCode = tokenCode end # getApiToken - Retrieves Pay.nl api token def self.getApiToken return @@apiToken end # setApiToken - Sets Pay.nl api token def self.setApiToken(apiToken) @@apiToken = apiToken end # getServiceId - Retrieves Pay.nl Service Id def self.getServiceId return @@serviceId end # setServiceId - Set the Pay.nl Service Id def self.setServiceId(serviceId) @@serviceId = serviceId end # getApiVersion - Retrieves Pay.nl Api version def self.getApiVersion return @@apiVersion end # setApiVersion - Set the Pay.nl Api version def self.setApiVersion(apiVersion) @@apiVersion = apiVersion end # getApiUrl - Get constructed API Url for the given endpoint def self.getApiUrl(endpoint, version = nil) unless !version.nil? version = @@apiVersion end return @@apiBase + '/v' + version.to_s + '/' + endpoint + '/json' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paynl-1.0.4 | lib/paynl/config.rb |