1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22:50 -05:00

Start subscription for provider during setup process. (#3957)

This commit is contained in:
Alex Morask
2024-04-10 14:10:53 -04:00
committed by GitHub
parent 2c36784cda
commit 3cdfbdb22d
14 changed files with 749 additions and 17 deletions

View File

@ -255,7 +255,7 @@ public class StripeController : Controller
customerGetOptions.AddExpand("tax");
var customer = await _stripeFacade.GetCustomer(subscription.CustomerId, customerGetOptions);
if (!subscription.AutomaticTax.Enabled &&
customer.Tax?.AutomaticTax == StripeCustomerAutomaticTaxStatus.Supported)
customer.Tax?.AutomaticTax == StripeConstants.AutomaticTaxStatus.Supported)
{
subscription = await _stripeFacade.UpdateSubscription(subscription.Id,
new SubscriptionUpdateOptions