public IEnumerable <Stripe.Plan> GetPlans() { var planService = new Stripe.PlanService(PrivateKey); IEnumerable <Stripe.Plan> response = planService.List(); return(response); }
public Stripe.Plan[] GetPlans() { var service = new Stripe.PlanService(); var options = new Stripe.PlanListOptions { }; return(service.List(options).ToArray <Stripe.Plan>()); }