Skip to content

fix(billing): classify non-transient Stripe errors via rawType + auth/permission#3700

Merged
PierreBrisorgueil merged 2 commits into
masterfrom
fix/billing-stripe-error-classifier
May 23, 2026
Merged

fix(billing): classify non-transient Stripe errors via rawType + auth/permission#3700
PierreBrisorgueil merged 2 commits into
masterfrom
fix/billing-stripe-error-classifier

Conversation

@PierreBrisorgueil
Copy link
Copy Markdown
Contributor

@PierreBrisorgueil PierreBrisorgueil commented May 23, 2026

Summary

Follow-up to #3697. Extracts isNonTransientStripeError(err) into modules/billing/lib/billing.stripe-errors.js and wires it into the webhook PI-backfill retry (shouldRetry: (err) => !isNonTransientStripeError(err)).

Fixes two issues from the /critical-review of #3697 (filed as #3699):

  • err.rawType vs err.type — stripe-node sets err.type to the class name (StripeInvalidRequestError); the wire string (invalid_request_error) lives on err.rawType. Verified in node_modules/stripe/cjs/Error.js (this.type = type || this.constructor.name; each subclass super(raw, 'StripeXError')). The old err.type === 'invalid_request_error' was dead for SDK errors.
  • Auth/permissionStripeAuthenticationError (401) + StripePermissionError (403) are equally deterministic; now short-circuited.

The classifier keys on the SDK class name (.type) for the non-transient set plus invalid_request_error on .type/.rawType for unwrapped objects.

Scope notes

  • StripeIdempotencyError (400) included (deterministic). StripeCardError (402) excluded — some decline codes (processing_error, issuer_unavailable) are transient.
  • billing.admin.controller.js left as-is (different HTTP-422 mapping semantics + charge_already_refunded; can adopt the helper later).

Validation

  • npm run test:unit — 1521/1521 green (new billing.stripe-errors.unit.tests.js: class names, rawType branch, raw-object, transient classes false, card excluded, null/non-object guards)
  • ESLint clean
  • No regression in the webhook/refund-correlation retry tests

Closes #3699

Summary by CodeRabbit

  • Bug Fixes

    • Enhanced billing error handling to skip retries on non-recoverable Stripe errors, improving system reliability and reducing processing delays.
  • Tests

    • Added comprehensive test coverage for Stripe error classification.

Review Change Stack

…/permission

The retry short-circuit predicate checked err.type === 'invalid_request_error',
but stripe-node sets err.type to the class name (StripeInvalidRequestError) and
exposes the wire type on err.rawType — so that string was dead for SDK errors.
It also missed StripeAuthenticationError (401) and StripePermissionError (403),
which are equally deterministic and wasted the full retry budget.

Extract isNonTransientStripeError() in billing.stripe-errors.js: match the SDK
class names on .type plus invalid_request_error on .type/.rawType, and wire it
into the PI-backfill retry. billing.admin.controller.js left as-is (different
HTTP-422 mapping semantics; can adopt the helper later).

Closes #3699
… rawType branch

Pre-push review flagged the general isNonTransientStripeError helper omitted
StripeIdempotencyError (400, deterministic — reused key with conflicting params).
Add it. StripeCardError (402) stays excluded since some decline codes
(processing_error, issuer_unavailable) are transient. Add tests for the
rawType-only branch and the card exclusion; drop a mislabeled test.
Copilot AI review requested due to automatic review settings May 23, 2026 11:54
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 23, 2026

Caution

Review failed

Failed to post review comments

Walkthrough

A new Stripe error classification helper (isNonTransientStripeError()) is introduced to centralize detection of deterministic, non-retryable Stripe errors. The webhook service integration replaces inline error-type checks with this helper, and comprehensive unit tests validate behavior across Stripe error variants and edge cases.

Changes

Stripe Error Classification and Retry Integration

Layer / File(s) Summary
Stripe error classification helper
modules/billing/lib/billing.stripe-errors.js
Defines NON_TRANSIENT_STRIPE_ERROR_CLASSES constant and exports isNonTransientStripeError(err) to classify deterministic Stripe SDK error class names and raw invalid_request_error wire-type errors as non-transient.
Webhook service retry policy update
modules/billing/services/billing.webhook.service.js
Imports the error classifier and replaces explicit Stripe error-type checks with shouldRetry: (err) => !isNonTransientStripeError(err) in the PI metadata backfill retry logic.
Error classifier unit tests
modules/billing/tests/billing.stripe-errors.unit.tests.js
Jest test suite validates that the classifier correctly identifies deterministic error classes, handles both SDK-wrapped and raw error shapes, rejects transient errors and non-Stripe inputs, and covers edge cases.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related issues

  • pierreb-devkit/Node#3699: Related PR addressing the same retry-predicate behavior for Stripe errors by extracting and using an isNonTransientStripeError helper and checking err.rawType to short-circuit non-retryable error classes.

Possibly related PRs

  • pierreb-devkit/Node#3697: Modifies the PI metadata backfill retry logic in billing.webhook.service.js to short-circuit retries on non-transient Stripe invalid_request_error failures.
  • pierreb-devkit/Node#3690: Changes the checkout.session.completed PaymentIntent metadata backfill retry behavior in billing.webhook.service.js by introducing retryWithBackoff and dead-letter handling.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: classifying non-transient Stripe errors via rawType and auth/permission handling.
Description check ✅ Passed The description covers all major template sections: Summary (what/why with referenced issues), Scope (modules and risk level), and Validation (test results with specific counts and test coverage details).
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/billing-stripe-error-classifier

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refines billing’s Stripe retry behavior by centralizing and expanding “non-transient Stripe error” detection, ensuring deterministic failures (bad params/auth/permission/idempotency) short-circuit retryWithBackoff instead of burning retry budget.

Changes:

  • Add isNonTransientStripeError(err) helper that correctly distinguishes Stripe SDK class-name .type from wire-type .rawType / raw-object .type.
  • Wire the helper into the PaymentIntent metadata backfill retry predicate in billing.webhook.service.js.
  • Add unit tests covering SDK-class, rawType, raw-object, transient-class, card-error exclusion, and guard cases.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
modules/billing/lib/billing.stripe-errors.js Introduces a shared helper to classify deterministic (non-transient) Stripe errors across SDK and raw error shapes.
modules/billing/services/billing.webhook.service.js Uses the shared helper to short-circuit retries for deterministic Stripe errors during PI metadata backfill.
modules/billing/tests/billing.stripe-errors.unit.tests.js Adds unit coverage for the classifier, including rawType handling and non-Stripe inputs.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.73%. Comparing base (b7ea2e3) to head (6c5d51b).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3700      +/-   ##
==========================================
+ Coverage   89.72%   89.73%   +0.01%     
==========================================
  Files         142      143       +1     
  Lines        4789     4794       +5     
  Branches     1503     1505       +2     
==========================================
+ Hits         4297     4302       +5     
  Misses        385      385              
  Partials      107      107              
Flag Coverage Δ
integration 59.42% <16.66%> (-0.05%) ⬇️
unit 66.24% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b7ea2e3...6c5d51b. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 23, 2026

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
{"name":"HttpError","status":401,"request":{"method":"PATCH","url":"https://api.github.com/repos/pierreb-devkit/Node/issues/comments/4525257853","headers":{"accept":"application/vnd.github.v3+json","user-agent":"octokit.js/0.0.0-development octokit-core.js/7.0.6 Node.js/24","authorization":"token [REDACTED]","content-type":"application/json; charset=utf-8"},"body":{"body":"<!-- This is an auto-generated comment: summarize by coderabbit.ai -->\n<!-- walkthrough_start -->\n\n## Walkthrough\n\nA new Stripe error classification helper (`isNonTransientStripeError()`) is introduced to centralize detection of deterministic, non-retryable Stripe errors. The webhook service integration replaces inline error-type checks with this helper, and comprehensive unit tests validate behavior across Stripe error variants and edge cases.\n\n## Changes\n\n**Stripe Error Classification and Retry Integration**\n\n|Layer / File(s)|Summary|\n|---|---|\n|**Stripe error classification helper** <br> `modules/billing/lib/billing.stripe-errors.js`|Defines `NON_TRANSIENT_STRIPE_ERROR_CLASSES` constant and exports `isNonTransientStripeError(err)` to classify deterministic Stripe SDK error class names and raw `invalid_request_error` wire-type errors as non-transient.|\n|**Webhook service retry policy update** <br> `modules/billing/services/billing.webhook.service.js`|Imports the error classifier and replaces explicit Stripe error-type checks with `shouldRetry: (err) => !isNonTransientStripeError(err)` in the PI metadata backfill retry logic.|\n|**Error classifier unit tests** <br> `modules/billing/tests/billing.stripe-errors.unit.tests.js`|Jest test suite validates that the classifier correctly identifies deterministic error classes, handles both SDK-wrapped and raw error shapes, rejects transient errors and non-Stripe inputs, and covers edge cases.|\n\n## Estimated code review effort\n\n🎯 2 (Simple) | ⏱️ ~12 minutes\n\n## Possibly related issues\n\n- [pierreb-devkit/Node#3699](https://github.com/pierreb-devkit/Node/issues/3699): Related PR addressing the same retry-predicate behavior for Stripe errors by extracting and using an `isNonTransientStripeError` helper and checking `err.rawType` to short-circuit non-retryable error classes.\n\n## Possibly related PRs\n\n- [pierreb-devkit/Node#3697](https://github.com/pierreb-devkit/Node/pull/3697): Modifies the PI metadata backfill retry logic in `billing.webhook.service.js` to short-circuit retries on non-transient Stripe `invalid_request_error` failures.\n- [pierreb-devkit/Node#3690](https://github.com/pierreb-devkit/Node/pull/3690): Changes the `checkout.session.completed` PaymentIntent metadata backfill retry behavior in `billing.webhook.service.js` by introducing retryWithBackoff and dead-letter handling.\n\n<!-- walkthrough_end -->\n<!-- pre_merge_checks_walkthrough_start -->\n\n<details>\n<summary>🚥 Pre-merge checks | ✅ 5</summary>\n\n<details>\n<summary>✅ Passed checks (5 passed)</summary>\n\n|         Check name         | Status   | Explanation                                                                                                                                                                                                  |\n| :------------------------: | :------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n|         Title check        | ✅ Passed | The title clearly summarizes the main change: classifying non-transient Stripe errors via rawType and auth/permission handling.                                                                              |\n|      Description check     | ✅ Passed | The description covers all major template sections: Summary (what/why with referenced issues), Scope (modules and risk level), and Validation (test results with specific counts and test coverage details). |\n|     Docstring Coverage     | ✅ Passed | Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.                                                                                                                         |\n|     Linked Issues check    | ✅ Passed | Check skipped because no linked issues were found for this pull request.                                                                                                                                     |\n| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request.                                                                                                                                     |\n\n</details>\n\n<sub>✏️ Tip: You can configure your own custom pre-merge checks in the settings.</sub>\n\n</details>\n\n<!-- pre_merge_checks_walkthrough_end -->\n<!-- finishing_touch_checkbox_start -->\n\n<details>\n<summary>✨ Finishing Touches</summary>\n\n<details>\n<summary>📝 Generate docstrings</summary>\n\n- [ ] <!-- {\"checkboxId\": \"7962f53c-55bc-4827-bfbf-6a18da830691\"} --> Create stacked PR\n- [ ] <!-- {\"checkboxId\": \"3e1879ae-f29b-4d0d-8e06-d12b7ba33d98\"} --> Commit on current branch\n\n</details>\n<details>\n<summary>🧪 Generate unit tests (beta)</summary>\n\n- [ ] <!-- {\"checkboxId\": \"f47ac10b-58cc-4372-a567-0e02b2c3d479\", \"radioGroupId\": \"utg-output-choice-group-unknown_comment_id\"} -->   Create PR with unit tests\n- [ ] <!-- {\"checkboxId\": \"6ba7b810-9dad-11d1-80b4-00c04fd430c8\", \"radioGroupId\": \"utg-output-choice-group-unknown_comment_id\"} -->   Commit unit tests in branch `fix/billing-stripe-error-classifier`\n\n</details>\n\n</details>\n\n<!-- finishing_touch_checkbox_end -->\n<!-- tips_start -->\n\n---\n\nThanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=pierreb-devkit/Node&utm_content=3700)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.\n\n<details>\n<summary>❤️ Share</summary>\n\n- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)\n- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)\n- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)\n- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)\n\n</details>\n\n\n<sub>Comment `@coderabbitai help` to get the list of available commands and usage tips.</sub>\n\n<!-- tips_end -->\n<!-- internal state start -->\n\n\n<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKPR1AGxJcAZvAAeABRqHh7wGEQAlFwMHmiIiPA+8hj4GGC4VBiJ7JAAypnw3CSQlBT4FMgS8GiQVADu0LLFkADUOLiwAPTFFMxIiWkGAHKOApRcAMwA7AAMswY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9xxJaeQaBjPQCg6d8JJ8Oe26BGpcBzRxbaAY71A7RDnD9ZhFOy89ODObOzPTPtOlEgA=== -->\n\n<!-- internal state end -->"},"request":{"retryCount":1,"signal":{}}},"response":{"url":"https://api.github.com/repos/pierreb-devkit/Node/issues/comments/4525257853","status":401,"headers":{"access-control-allow-origin":"*","access-control-expose-headers":"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset","connection":"close","content-security-policy":"default-src 'none'","content-type":"application/json; charset=utf-8","date":"Sat, 23 May 2026 11:58:59 GMT","referrer-policy":"origin-when-cross-origin, strict-origin-when-cross-origin","server":"github.com","strict-transport-security":"max-age=31536000; includeSubdomains; preload","vary":"Accept-Encoding, Accept, X-Requested-With","x-content-type-options":"nosniff","x-frame-options":"deny","x-github-media-type":"github.v3; format=json","x-github-request-id":"04A8:1D4B7:A619843:27FA99D5:6A119683","x-xss-protection":"0"},"data":{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"}}}

@PierreBrisorgueil PierreBrisorgueil merged commit d87542b into master May 23, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(billing): retryWithBackoff Stripe predicate — match err.rawType + cover auth/permission non-transient types

2 participants