示例#1
0
        public JudoPayApi(Func <Type, ILog> logger, IClient client)
        {
            Payments     = new Payments(logger(typeof(Payments)), client);
            Refunds      = new Refunds(logger(typeof(Refunds)), client);
            PreAuths     = new PreAuths(logger(typeof(PreAuths)), client);
            Transactions = new Transactions(logger(typeof(Transactions)), client);
            Collections  = new Collections(logger(typeof(Collections)), client);
            ThreeDs      = new ThreeDs(logger(typeof(ThreeDs)), client);

            Market = new Market
            {
                Refunds      = new MarketRefunds(logger(typeof(MarketRefunds)), client),
                Transactions = new MarketTransactions(logger(typeof(MarketTransactions)), client),
                Collections  = new MarketCollections(logger(typeof(MarketCollections)), client),
                Merchants    = new MarketMerchants(logger(typeof(MarketMerchants)), client)
            };

            WebPayments = new WebPayments
            {
                Payments     = new Clients.WebPayments.Payments(logger(typeof(Clients.WebPayments.Payments)), client),
                PreAuths     = new Clients.WebPayments.PreAuths(logger(typeof(Clients.WebPayments.PreAuths)), client),
                Transactions = new Clients.WebPayments.Transactions(logger(typeof(Clients.WebPayments.Transactions)), client)
            };

            Consumers = new Consumers(logger(typeof(Consumers)), client);
        }
示例#2
0
        public JudoPayApi(Func<Type, ILog> logger, IClient client)
        {
            Payments = new Payments(logger(typeof(Payments)), client, true);
            Refunds = new Refunds(logger(typeof(Refunds)), client);
            PreAuths = new PreAuths(logger(typeof(PreAuths)), client, true);
            Transactions = new Transactions(logger(typeof(Transactions)), client);
            Collections = new Collections(logger(typeof(Collections)), client);
            ThreeDs = new ThreeDs(logger(typeof(ThreeDs)), client);
            RegisterCards = new RegisterCards(logger(typeof(RegisterCards)), client,true);

            WebPayments = new WebPayments
            {
                Payments = new Clients.WebPayments.Payments(logger(typeof(Clients.WebPayments.Payments)), client),
                PreAuths = new Clients.WebPayments.PreAuths(logger(typeof(Clients.WebPayments.PreAuths)), client),
                Transactions = new Clients.WebPayments.Transactions(logger(typeof(Clients.WebPayments.Transactions)), client)
            };

            Consumers = new Consumers(logger(typeof(Consumers)), client);
        }
示例#3
0
        public JudoPayApi(Func <Type, ILog> logger, IClient client)
        {
            Payments      = new Payments(logger(typeof(Payments)), client, true);
            Refunds       = new Refunds(logger(typeof(Refunds)), client);
            PreAuths      = new PreAuths(logger(typeof(PreAuths)), client, true);
            Transactions  = new Transactions(logger(typeof(Transactions)), client);
            Collections   = new Collections(logger(typeof(Collections)), client);
            ThreeDs       = new ThreeDs(logger(typeof(ThreeDs)), client);
            RegisterCards = new RegisterCards(logger(typeof(RegisterCards)), client, true);
            SaveCards     = new SaveCard(logger(typeof(SaveCard)), client);
            Voids         = new Voids(logger(typeof(Voids)), client);

            WebPayments = new WebPayments
            {
                Payments     = new Clients.WebPayments.Payments(logger(typeof(Clients.WebPayments.Payments)), client),
                PreAuths     = new Clients.WebPayments.PreAuths(logger(typeof(Clients.WebPayments.PreAuths)), client),
                Transactions = new Clients.WebPayments.Transactions(logger(typeof(Clients.WebPayments.Transactions)), client)
            };

            Consumers  = new Consumers(logger(typeof(Consumers)), client);
            Connection = client.Connection;
        }