public BraintreePaymentService(BraintreeSettings braintreeSettings, CartModel cartModel,
                                IOrderPlacementService orderPlacementService, ILogAdminService logAdminService)
 {
     _braintreeSettings     = braintreeSettings;
     _cartModel             = cartModel;
     _orderPlacementService = orderPlacementService;
     _logAdminService       = logAdminService;
 }
예제 #2
0
 public SagePayNotificationController(SagePaySettings sagePaySettings, ISagePayService sagePayService,
                                      ISagePayCartLoader sagePayCartLoader, IOrderPlacementService orderPlacementService)
 {
     _sagePaySettings       = sagePaySettings;
     _sagePayService        = sagePayService;
     _sagePayCartLoader     = sagePayCartLoader;
     _orderPlacementService = orderPlacementService;
 }
 public PaymentNotRequiredUIService(IUniquePageService uniquePageService, CartModel cartModel,
     IStringResourceProvider stringResourceProvider, IOrderPlacementService orderPlacementService)
 {
     _uniquePageService = uniquePageService;
     _cartModel = cartModel;
     _stringResourceProvider = stringResourceProvider;
     _orderPlacementService = orderPlacementService;
 }
예제 #4
0
 public SagePayRedirectController(CartModel cart, IOrderPlacementService orderPlacementService,
                                  ISagePayService sagePayService, IUniquePageService uniquePageService)
 {
     _cart = cart;
     _orderPlacementService = orderPlacementService;
     _sagePayService        = sagePayService;
     _uniquePageService     = uniquePageService;
 }
예제 #5
0
 public BraintreePaymentService(BraintreeSettings braintreeSettings, CartModel cartModel, 
     IOrderPlacementService orderPlacementService, ILogAdminService logAdminService)
 {
     _braintreeSettings = braintreeSettings;
     _cartModel = cartModel;
     _orderPlacementService = orderPlacementService;
     _logAdminService = logAdminService;
 }
예제 #6
0
 public PaymentNotRequiredUIService(IUniquePageService uniquePageService, CartModel cartModel,
                                    IStringResourceProvider stringResourceProvider, IOrderPlacementService orderPlacementService)
 {
     _uniquePageService      = uniquePageService;
     _cartModel              = cartModel;
     _stringResourceProvider = stringResourceProvider;
     _orderPlacementService  = orderPlacementService;
 }
 public PayPalExpressCheckoutController(IPayPalExpressService payPalExpressService, CartModel cart,
                                        IOrderPlacementService orderPlacementService, IUniquePageService uniquePageService, IPayPalUrlService payPalUrlService)
 {
     _payPalExpressService = payPalExpressService;
     _cart = cart;
     _orderPlacementService = orderPlacementService;
     _uniquePageService     = uniquePageService;
     _payPalUrlService      = payPalUrlService;
 }
 public PaypointController(IPaypointPaymentService paypointPaymentService, CartModel cartModel,
                           IOrderPlacementService orderPlacementService, IPaypoint3DSecureHelper paypoint3DSecureHelper,
                           IUniquePageService uniquePageService)
 {
     _paypointPaymentService = paypointPaymentService;
     _cartModel              = cartModel;
     _orderPlacementService  = orderPlacementService;
     _paypoint3DSecureHelper = paypoint3DSecureHelper;
     _uniquePageService      = uniquePageService;
 }
예제 #9
0
 public WorldPayPaymentService(WorldPaySettings worldPaySettings, CartModel cart,
                               EcommerceSettings ecommerceSettings, ICartBuilder cartBuilder,
                               ISession session, IOrderPlacementService orderPlacementService, Site site)
 {
     _worldPaySettings      = worldPaySettings;
     _cart                  = cart;
     _ecommerceSettings     = ecommerceSettings;
     _cartBuilder           = cartBuilder;
     _session               = session;
     _orderPlacementService = orderPlacementService;
     _site                  = site;
 }
예제 #10
0
 public WorldPayPaymentService(WorldPaySettings worldPaySettings, CartModel cart,
     EcommerceSettings ecommerceSettings, ICartBuilder cartBuilder,
     ISession session, IOrderPlacementService orderPlacementService, Site site)
 {
     _worldPaySettings = worldPaySettings;
     _cart = cart;
     _ecommerceSettings = ecommerceSettings;
     _cartBuilder = cartBuilder;
     _session = session;
     _orderPlacementService = orderPlacementService;
     _site = site;
 }
예제 #11
0
 public CharityClearPaymentService(CartModel cart,
                                   EcommerceSettings ecommerceSettings, ICartBuilder cartBuilder,
                                   ISession session, IOrderPlacementService orderPlacementService, Site site, CharityClearSettings charityClearSettings, ILogAdminService logService)
 {
     _cart = cart;
     _ecommerceSettings     = ecommerceSettings;
     _cartBuilder           = cartBuilder;
     _session               = session;
     _orderPlacementService = orderPlacementService;
     _site = site;
     _charityClearSettings = charityClearSettings;
     _logService           = logService;
 }
예제 #12
0
 public CharityClearPaymentService(CartModel cart,
     EcommerceSettings ecommerceSettings, ICartBuilder cartBuilder,
     ISession session, IOrderPlacementService orderPlacementService, Site site, CharityClearSettings charityClearSettings, ILogAdminService logService)
 {
     _cart = cart;
     _ecommerceSettings = ecommerceSettings;
     _cartBuilder = cartBuilder;
     _session = session;
     _orderPlacementService = orderPlacementService;
     _site = site;
     _charityClearSettings = charityClearSettings;
     _logService = logService;
 }
예제 #13
0
        static void Main(string[] args)
        {
            IScopeFactory scopeFactory = InfraConfig.Initialize();

            using (IAppLayer app = scopeFactory.CreateAppLayer())
            {
                IPaymentService        payment        = app.GetService <IPaymentService>();
                IOrderPlacementService orderPlacement = app.GetService <IOrderPlacementService>();

                Console.WriteLine("\n#### IPaymentService.PayOrder ####\n");
                payment.PayOrder(orderId: 1, amount: 30);
                app.UnitOfWork.Save();


                Console.WriteLine("\n#### IOrderPlacementService.ShipOrder ####\n");
                orderPlacement.ShipOrder(orderId: 1, address: "G1Q1Q9");
                app.UnitOfWork.Save();
            }

            Console.ReadKey();
        }
예제 #14
0
 public CashOnDeliveryUIService(CartModel cart, IUniquePageService uniquePageService, IOrderPlacementService orderPlacementService)
 {
     _cart = cart;
     _uniquePageService = uniquePageService;
     _orderPlacementService = orderPlacementService;
 }
 public CashOnDeliveryUIService(CartModel cart, IUniquePageService uniquePageService, IOrderPlacementService orderPlacementService)
 {
     _cart = cart;
     _uniquePageService     = uniquePageService;
     _orderPlacementService = orderPlacementService;
 }
 public PlaceOrderWhenPaidEventHandler(IOrderPlacementService orderPlacement)
 {
     _orderPlacement = orderPlacement;
 }