mirror of
https://github.com/bitwarden/server
synced 2025-12-16 00:03:54 +00:00
Cherry pick/stripe sdk fixes (#2170)
* update stripe sdk (#2166) * Bump version to 2022.8.1 (#2167) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> (cherry picked from commiteaca9a5864) * added setting to toggle stripe api version errors (#2168) * Bump version to 2022.8.2 (#2169) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> (cherry picked from commit3d7e5e165c) Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -92,7 +92,8 @@ namespace Bit.Billing.Controllers
|
||||
{
|
||||
var json = await sr.ReadToEndAsync();
|
||||
parsedEvent = EventUtility.ConstructEvent(json, Request.Headers["Stripe-Signature"],
|
||||
_billingSettings.StripeWebhookSecret);
|
||||
_billingSettings.StripeWebhookSecret,
|
||||
throwOnApiVersionMismatch: _billingSettings.StripeEventParseThrowMismatch);
|
||||
}
|
||||
|
||||
if (string.IsNullOrWhiteSpace(parsedEvent?.Id))
|
||||
|
||||
Reference in New Issue
Block a user