public PaymentsController(ICreatePaymentService createPaymentService,
                           IGetPaymentService getPaymentService,
                           IUriService uriService,
                           IMapper mapper)
 {
     _createPaymentService = createPaymentService;
     _getPaymentService    = getPaymentService;
     _uriService           = uriService;
     _mapper = mapper;
 }
Example #2
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();
        }