public BuySubscriptionController(UserManager <ApplicationUser> userManager,
                                  IPackagePlanService packagePlanService,
                                  IBusinessService _businessService) : base(userManager, _businessService)
 {
     this.packagePlanService = packagePlanService;
     this.businessService    = _businessService;
 }
Ejemplo n.º 2
0
        public PaymentController(IHttpContextAccessor contextAccessor,
                                 UserManager <ApplicationUser> userManager,
                                 IPaypalServices paypalServices,
                                 IPackagePlanService packagePlanService,
                                 IBusiness_SubscriptionService subscriptionService,
                                 IBusinessService _businessService) : base(userManager, _businessService)
        {
            _PaypalServices          = paypalServices;
            this.packagePlanService  = packagePlanService;
            this.subscriptionService = subscriptionService;
            businessService          = _businessService;
            m_httpContextAccessor    = contextAccessor;

            URL = AppBaseUrl + "/Payment/";
            URL_CreatePayment  = URL + "CreatePayment";
            URL_ExecutePayment = URL + "ExecutePayment";
            URL_Success        = URL + "Success";
            URL_Cancel         = URL + "Cancel";
        }
Ejemplo n.º 3
0
        public HomeController(IHttpContextAccessor contextAccessor,
                              UserManager <ApplicationUser> userManager,
                              IPaypalServices paypalServices,
                              IPackagePlanService _packagePlanService,
                              IBusiness_SubscriptionService _subscriptionService,
                              IBusinessService _businessService, IOptions <ConfigAuthOptions> options)
        {
            _userManager = userManager;

            _PaypalServices       = paypalServices;
            packagePlanService    = _packagePlanService;
            subscriptionService   = _subscriptionService;
            businessService       = _businessService;
            _options              = options;
            m_httpContextAccessor = contextAccessor;

            URL = AppBaseUrl + "/Home/";
            URL_CreatePayment  = URL + "CreatePayment";
            URL_ExecutePayment = URL + "ExecutePayment";
            URL_Success        = URL + "Success";
            URL_Cancel         = URL + "Cancel";
        }