Sha256: ac00b1a59c2117aa9a13fcc1bf92013f00820beec6fcead97dae669f1eecfbe6
Contents?: true
Size: 831 Bytes
Versions: 13
Compression:
Stored size: 831 Bytes
Contents
module Killbill::Litle class Gateway include Singleton def configure(config) if config[:test] ActiveMerchant::Billing::Base.mode = :test end if config[:log_file] ActiveMerchant::Billing::LitleGateway.wiredump_device = File.open(config[:log_file], 'w') ActiveMerchant::Billing::LitleGateway.wiredump_device.sync = true end @gateway = ActiveMerchant::Billing::LitleGateway.new({ :user => config[:username], :merchant_id => config[:merchant_id], :password => config[:password] }) end def method_missing(m, *args, &block) @gateway.send(m, *args, &block) end end end
Version data entries
13 entries across 13 versions & 1 rubygems