{"record":{"id":"356d80161052381e","repo":"different-ai/openwork","slug":"this-checkout-could-not-be-confirmed-for-the-curre","errorCode":null,"errorMessage":"This checkout could not be confirmed for the current organization. If you completed payment, access opens shortly.","messagePattern":"This checkout could not be confirmed for the current organization\\. If you completed payment, access opens shortly\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"ee/apps/den-web/app/(den)/dashboard/web/page.tsx","lineNumber":235,"sourceCode":"            await runReauthableAction(\"openwork-web-checkout-sync\", async () => {\n              const { response, payload } = await requestJson(\n                \"/v1/billing/stripe/checkout/sync\",\n                {\n                  method: \"POST\",\n                  headers: { [ORG_SCOPE_HEADER]: expectedOrgId },\n                  body: JSON.stringify({ sessionId, type: OPENWORK_WEB_CHECKOUT_TYPE }),\n                },\n                12000,\n              );\n              if (!response.ok) throw getRequestError(payload, response, `Checkout confirmation failed (${response.status}).`);\n              synced = Boolean(payload && typeof payload === \"object\" && \"synced\" in payload && payload.synced === true);\n            });\n            return synced;\n          })();\n          syncedSessionsRef.current.set(syncKey, syncPromise);\n        }\n        const synced = await syncPromise;\n        if (!synced) throw new Error(\"This checkout could not be confirmed for the current organization. If you completed payment, access opens shortly.\");\n      } catch (error) {\n        if (!stopped && mountedRef.current && currentOrgIdRef.current === expectedOrgId) {\n          setReturnChecking(false);\n          setErrorRecord({\n            orgId: expectedOrgId,\n            message: error instanceof Error ? error.message : \"Could not confirm this checkout. OpenWork Web remains locked.\",\n          });\n          clearStripeReturnParameters();\n        }\n        return;\n      }\n\n      async function pollEligibility() {\n        attempts += 1;\n        const nextBilling = await requestWebBilling(expectedOrgId, true);\n        if (stopped || !mountedRef.current || currentOrgIdRef.current !== expectedOrgId) return;\n        if (nextBilling?.hasAccess) {\n          setReturnChecking(false);","sourceCodeStart":217,"sourceCodeEnd":253,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/apps/den-web/app/(den)/dashboard/web/page.tsx#L217-L253","documentation":"Error \"This checkout could not be confirmed for the current organization. If you completed payment, access opens shortly.\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/apps/den-web/app/(den)/dashboard/web/page.tsx:235 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2b7df46e8ae1517d64c896c7793d2d52ec845669","analyzedAt":"2026-09-01T07:59:23.713Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}