1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

[PM-16682] Fix tax id not being saved for providers (#5257)

This commit is contained in:
Jonas Hendrickx
2025-01-20 16:50:11 +01:00
committed by GitHub
parent ee2d7df061
commit 0de108e051
3 changed files with 5 additions and 13 deletions

View File

@ -167,7 +167,7 @@ public class StripePaymentService : IPaymentService
City = taxInfo?.BillingAddressCity,
State = taxInfo?.BillingAddressState,
},
TaxIdData = taxInfo.HasTaxId
TaxIdData = !string.IsNullOrWhiteSpace(taxInfo.TaxIdNumber)
? [new CustomerTaxIdDataOptions { Type = taxInfo.TaxIdType, Value = taxInfo.TaxIdNumber }]
: null
};