mirror of
https://github.com/bitwarden/server.git
synced 2024-11-24 12:35:25 +01:00
add
This commit is contained in:
parent
ae82074dcb
commit
58cf8b183c
@ -74,6 +74,8 @@ public class StripeController(
|
||||
},
|
||||
}
|
||||
};
|
||||
try
|
||||
{
|
||||
var taxCalculation = await stripeAdapter.CalculateTaxAsync(options);
|
||||
var response = new CalculateTaxResponseModel
|
||||
{
|
||||
@ -86,4 +88,9 @@ public class StripeController(
|
||||
};
|
||||
return TypedResults.Ok(response);
|
||||
}
|
||||
catch (StripeException e)
|
||||
{
|
||||
return TypedResults.BadRequest(e.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user