Skip to content

Emit warning when stripe-notify header is present in response#2723

Merged
xavdid merged 2 commits into
masterfrom
RUN_DEVSDK-2430
May 27, 2026
Merged

Emit warning when stripe-notify header is present in response#2723
xavdid merged 2 commits into
masterfrom
RUN_DEVSDK-2430

Conversation

@xavdid

@xavdid xavdid commented May 21, 2026

Copy link
Copy Markdown
Member

Why?

We've noticed a trend where users (and their agents) will sometimes reach for suboptimal API endpoints/methods because of outdated information. For example, using /v1/accounts when /v2/core/accounts is available and has a superset of the functionality from v1.

In an effort to help steer users towards best practices, we're introducing a new header to provide feedback during the development process. The SDK is responsible for surfacing this header, if present.

Once enabled internally, the header will be returned by the server for:

  • all testmode calls
  • livemode calls made by an agent

We may tweak that going forwards. But no matter the conditions, the SDKs will act as a thin pipe.

What?

  • Emit warning when we see the Stripe-Notice header in a response
  • add tests

See Also

@xavdid xavdid requested a review from a team as a code owner May 21, 2026 23:42
@xavdid xavdid requested review from jar-stripe and removed request for a team May 21, 2026 23:42
@xavdid xavdid enabled auto-merge (squash) May 22, 2026 18:39
Comment thread src/RequestSender.ts
@xavdid xavdid merged commit c684957 into master May 27, 2026
10 checks passed
@xavdid xavdid deleted the RUN_DEVSDK-2430 branch May 27, 2026 18:24
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.

2 participants