Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }