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

            _payment      = expose.CreatePayment();
            _authority    = expose.CreateAuthority();
            _transactions = expose.CreateTransactions();
        }
Exemplo 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;
        }
Exemplo 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();
        }