public async Task <Session> GetCheckoutSession(string sessionId) { var options = new SessionGetOptions(); options.AddExpand("setup_intent"); options.AddExpand("payment_intent"); var service = new SessionService(); return(await service.GetAsync(sessionId, options)); }
private Session ExpandAsSession(Stripe.Event stripeEvent) { var session = stripeEvent.Data.Object as Session; var service = new SessionService(); var options = new SessionGetOptions(); options.AddExpand("customer"); return(service.Get(session.Id, options)); }