1
0
mirror of https://github.com/bitwarden/server synced 2025-12-14 15:23:42 +00:00

support credit purchases and prorated upgrades

This commit is contained in:
Kyle Spearrin
2019-02-20 23:54:27 -05:00
parent e10c99ec96
commit 01d324a8b4
4 changed files with 76 additions and 29 deletions

View File

@@ -550,7 +550,7 @@ namespace Bit.Core.Services
}
else
{
if(!signup.PaymentMethodType.HasValue)
if(!signup.PaymentMethodType.HasValue && !string.IsNullOrWhiteSpace(signup.PaymentToken))
{
if(signup.PaymentToken.StartsWith("btok_"))
{