mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
[AC-1772] Check null or whitespace on GatewayCustomerId
and BillingEmail
(#3398)
* Check null or whitespace on GatewayCustomerId and BillingEmail * Fixed expiration input
This commit is contained in:
@ -215,7 +215,10 @@ public class OrganizationsController : Controller
|
||||
|
||||
try
|
||||
{
|
||||
await _stripeSyncService.UpdateCustomerEmailAddress(organization.GatewayCustomerId, organization.BillingEmail);
|
||||
if (!string.IsNullOrWhiteSpace(organization.GatewayCustomerId) && !string.IsNullOrWhiteSpace(organization.BillingEmail))
|
||||
{
|
||||
await _stripeSyncService.UpdateCustomerEmailAddress(organization.GatewayCustomerId, organization.BillingEmail);
|
||||
}
|
||||
}
|
||||
catch (StripeException stripeException)
|
||||
{
|
||||
|
Reference in New Issue
Block a user