From d6f2dfd8b1bf4a38eb4adbfa3c0473fc398e86d1 Mon Sep 17 00:00:00 2001 From: Kristina <7614497+khjrtbrg@users.noreply.github.com> Date: Mon, 13 Oct 2025 10:01:53 +0200 Subject: [PATCH] [web] fix Stripe concurrent idempotency error (#29007) GitOrigin-RevId: 458f712452241771dff99977e638a3f4d2c113fa --- services/web/app/src/Features/Subscription/Errors.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/web/app/src/Features/Subscription/Errors.js b/services/web/app/src/Features/Subscription/Errors.js index 2e93604137..8d4498290a 100644 --- a/services/web/app/src/Features/Subscription/Errors.js +++ b/services/web/app/src/Features/Subscription/Errors.js @@ -32,6 +32,12 @@ class HasNoAdditionalLicenseWhenManuallyCollectedError extends OError {} class InvalidTaxIdError extends OError {} +class StripeClientIdempotencyKeyInUseError extends OError { + constructor() { + super('Stripe idempotency key was already in use') + } +} + /** * @typedef {Object} PaymentActionRequiredInfo * @property {string} PaymentActionRequiredInfo.clientSecret @@ -75,4 +81,5 @@ module.exports = { HasPastDueInvoiceError, HasNoAdditionalLicenseWhenManuallyCollectedError, InvalidTaxIdError, + StripeClientIdempotencyKeyInUseError, }