mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
use error code constants
This commit is contained in:
parent
bd89f7774d
commit
9b5c696e1f
@ -646,7 +646,7 @@ public class SubscriberService(
|
||||
{
|
||||
switch (e.StripeError.Code)
|
||||
{
|
||||
case "tax_id_invalid":
|
||||
case StripeConstants.ErrorCodes.TaxIdInvalid:
|
||||
logger.LogWarning("Invalid tax ID '{TaxID}' for country '{Country}'.",
|
||||
taxInformation.TaxId,
|
||||
taxInformation.Country);
|
||||
|
@ -1736,7 +1736,7 @@ public class StripePaymentService : IPaymentService
|
||||
{
|
||||
switch (e.StripeError.Code)
|
||||
{
|
||||
case "tax_id_invalid":
|
||||
case StripeConstants.ErrorCodes.TaxIdInvalid:
|
||||
_logger.LogWarning("Invalid tax ID '{TaxID}' for country '{Country}'.",
|
||||
taxInfo.TaxIdNumber,
|
||||
taxInfo.BillingAddressCountry);
|
||||
@ -1969,7 +1969,7 @@ public class StripePaymentService : IPaymentService
|
||||
{
|
||||
switch (e.StripeError.Code)
|
||||
{
|
||||
case "tax_id_invalid":
|
||||
case StripeConstants.ErrorCodes.TaxIdInvalid:
|
||||
_logger.LogWarning("Invalid tax ID '{TaxID}' for country '{Country}'.",
|
||||
parameters.TaxInformation.TaxId,
|
||||
parameters.TaxInformation.Country);
|
||||
|
Loading…
Reference in New Issue
Block a user