From e60f1a4f5005f0ea2324a758fdf8d44169ebf8ea Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 10 Aug 2019 12:07:24 -0400 Subject: [PATCH] add missing sub create options --- src/Core/Services/Implementations/StripePaymentService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Core/Services/Implementations/StripePaymentService.cs b/src/Core/Services/Implementations/StripePaymentService.cs index 98db411927..af62e68a61 100644 --- a/src/Core/Services/Implementations/StripePaymentService.cs +++ b/src/Core/Services/Implementations/StripePaymentService.cs @@ -91,6 +91,7 @@ namespace Bit.Core.Services var subCreateOptions = new SubscriptionCreateOptions { + OffSession = true, TrialPeriodDays = plan.TrialPeriodDays, DefaultPaymentMethodId = stipeCustomerPaymentMethodId, Items = new List(), @@ -148,6 +149,7 @@ namespace Bit.Core.Services PaymentMethodId = stipeCustomerPaymentMethodId, Metadata = stripeCustomerMetadata }); + subCreateOptions.AddExpand("latest_invoice.payment_intent"); subCreateOptions.CustomerId = customer.Id; var subscriptionService = new SubscriptionService(); subscription = await subscriptionService.CreateAsync(subCreateOptions);