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

Version Path
killbill-litle-1.1.1 lib/litle/litle/gateway.rb
killbill-litle-1.1.0 lib/litle/litle/gateway.rb
killbill-litle-1.0.14 lib/litle/litle/gateway.rb
killbill-litle-1.0.12 lib/litle/litle/gateway.rb
killbill-litle-1.0.11 lib/litle/litle/gateway.rb
killbill-litle-1.0.10 lib/litle/litle/gateway.rb
killbill-litle-1.0.9 lib/litle/litle/gateway.rb
killbill-litle-1.0.8 lib/litle/litle/gateway.rb
killbill-litle-1.0.6 lib/litle/litle/gateway.rb
killbill-litle-1.0.5 lib/litle/litle/gateway.rb
killbill-litle-1.0.3 lib/litle/litle/gateway.rb
killbill-litle-1.0.2 lib/litle/litle/gateway.rb
killbill-litle-1.0.1 lib/litle/litle/gateway.rb