module Bancard
works like ActiveMerchant::Billing::Response to maintain compatibility to active merchant gateways
works like ActiveMerchant::Billing::Response to maintain compatibility to active merchant gateways
Constants
- DEFAULT_CURRENCY
- LIVE_URL
- TEST_URL
- VERSION
Public Class Methods
sandbox!()
click to toggle source
# File lib/bancard.rb, line 19 def self.sandbox! @sandbox = true end
sandbox?()
click to toggle source
# File lib/bancard.rb, line 23 def self.sandbox? !!@sandbox end
vpos_url(path = nil)
click to toggle source
# File lib/bancard.rb, line 27 def self.vpos_url(path = nil) uri = URI.parse(sandbox? ? TEST_URL : LIVE_URL) uri.path = path.to_s uri.to_s end