//SubscriptionGateway gate = new SubscriptionGateway(AuthorizeNetConfigurationSection.ApiLogin, AuthorizeNetConfigurationSection.TransactionKey); public ActionResult Payment() { if (CurrentUser.Payment != null) { return(RedirectToAction <UserController>(c => c.Index())); } return(View(new PaymentInformationModel() { Price = payment.GetPlanPrice(planId) })); }