Sha256: fab713d6e060159275db5529f013c53d19016cd3eb579e8f86a954c00e9940a2
Contents?: true
Size: 787 Bytes
Versions: 3
Compression:
Stored size: 787 Bytes
Contents
module AruxApp module API class Checkout API_VERSION = 1 def self.public_uri AruxApp::API.uri(subdomain: "pay") end def public_uri self.class.public_uri end def self.api_uri AruxApp::API.uri(subdomain: "pay.api") end def api_uri self.class.api_uri end def self.api_route "#{api_uri}/api/v#{API_VERSION}/" end def self.iframe_url case AruxApp::API.mode when :production "https://htp.tokenex.com/Iframe/Iframe-v3.min.js" when :staging, :development, :test "https://test-htp.tokenex.com/Iframe/Iframe-v3.min.js" else raise "AruxApp::API environment not supported" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
arux_app-3.0.2 | lib/arux_app/api/checkout.rb |
arux_app-3.0.1 | lib/arux_app/api/checkout.rb |
arux_app-3.0.0 | lib/arux_app/api/checkout.rb |