Esempio n. 1
0
        public PayController()
        {
            var expose = new Expose();

            _payment      = expose.CreatePayment();
            _authority    = expose.CreateAuthority();
            _transactions = expose.CreateTransactions();
        }
Esempio n. 2
0
        public BaseController(Contextdb _db, IWebHostEnvironment env)
        {
            var expose = new Expose();

            _payment      = expose.CreatePayment();
            _authority    = expose.CreateAuthority();
            _transactions = expose.CreateTransactions();
            db            = _db;
            _env          = env;
        }
Esempio n. 3
0
        public PaymentController(IAddPaymentService addPaymentService, ICartService cartService,
                                 IGetPaymentService getPaymentService, IAddNewOrderService addNewOrderService)
        {
            _addPaymentService  = addPaymentService;
            _cartService        = cartService;
            _getPaymentService  = getPaymentService;
            cookiesManager      = new CookiesManager();
            _addNewOrderService = addNewOrderService;
            //zarinpal
            var expose = new Expose();

            _payment      = expose.CreatePayment();
            _authority    = expose.CreateAuthority();
            _transactions = expose.CreateTransactions();
        }