Sha256: d7cb27b379deed9dd31d640c88eac8da25717672110f382985d7d770f744d4e9

Contents?: true

Size: 950 Bytes

Versions: 34

Compression:

Stored size: 950 Bytes

Contents

module Killbill::PaypalExpress
  class Gateway
    include Singleton

    def configure(config)
      if config[:test]
        ActiveMerchant::Billing::Base.mode = :test
      end

      if config[:log_file]
        ActiveMerchant::Billing::PaypalExpressGateway.wiredump_device = File.open(config[:log_file], 'w')
        ActiveMerchant::Billing::PaypalExpressGateway.wiredump_device.sync = true
      end

      @gateway = ActiveMerchant::Billing::PaypalExpressGateway.new({
                                                                     :signature => config[:signature],
                                                                     :login => config[:login],
                                                                     :password => config[:password]
                                                                   })
    end

    def method_missing(m, *args, &block)
      @gateway.send(m, *args, &block)
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
killbill-paypal-express-1.7.0 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.6.7 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.6.6 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.6.5 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.6.4 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.6.3 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.6.2 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.6.1 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.6.0 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.5.4 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.5.3 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.5.2 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.5.1 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.5.0 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.4.1 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.4.0 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.3.0 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.2.0 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.1.0 lib/paypal_express/paypal/gateway.rb
killbill-paypal-express-1.0.17 lib/paypal_express/paypal/gateway.rb