-
Notifications
You must be signed in to change notification settings - Fork 825
Add Next.js App Router webhook example that leverages Route Handlers #2259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xavdid-stripe
approved these changes
Feb 7, 2025
gurus00
pushed a commit
to gurus00/stripe-node
that referenced
this pull request
Feb 11, 2025
gurus00
pushed a commit
to gurus00/stripe-node
that referenced
this pull request
Feb 11, 2025
ramya-stripe
added a commit
that referenced
this pull request
Mar 13, 2025
* Add Next.js App Router webhook example that leverages Route Handlers (#2259) * Update generated code (#2256) * Update generated code for v1463 * Update generated code for v1494 * Update generated code for v1495 * Update generated code for v1501 * Update generated code for v1505 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: prathmesh-stripe <[email protected]> * Bump version to 17.7.0 * Update actions/cache as v2 is deprecated (#2269) * remove test using soon-to-be-gone endpoint (#2270) --------- Co-authored-by: Jonathan Steele <[email protected]> Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: prathmesh-stripe <[email protected]> Co-authored-by: Prathmesh Ranaut <[email protected]> Co-authored-by: David Brownman <[email protected]>
ramya-stripe
added a commit
that referenced
this pull request
Mar 17, 2025
* Update generated code for v1473 * Add Next.js App Router webhook example that leverages Route Handlers (#2259) * Update generated code for v1479 * Update generated code for v1481 * Update generated code for v1483 * Update generated code for v1485 * Update generated code for v1486 * Update generated code for v1487 * Update generated code for v1490 * Update generated code for v1491 * Update generated code for v1493 * Update generated code for v1494 * Update generated code for v1495 * Update generated code for v1495 * Update generated code for v1496 * Update generated code for v1501 * Update generated code for v1501 * Update generated code for v1502 * Update generated code for v1504 * Update generated code for v1505 * Update generated code for v1505 * Fix bad merge conflict resolution --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Jonathan Steele <[email protected]>
ramya-stripe
added a commit
that referenced
this pull request
Apr 1, 2025
* Add Next.js App Router webhook example that leverages Route Handlers (#2259) * Update generated code (#2256) * Update generated code for v1463 * Update generated code for v1494 * Update generated code for v1495 * Update generated code for v1501 * Update generated code for v1505 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: prathmesh-stripe <[email protected]> * Bump version to 17.7.0 * Update actions/cache as v2 is deprecated (#2269) * remove test using soon-to-be-gone endpoint (#2270) * [BREAKING] swap Stripe.webhooks from a factory function to a static property (#2277) swap Stripe.webhooks from a factory function to a static property * Remove tests for endpoints that were removed (#2281) * Remove types that were marked as deprecated in Feb 2024 (#2286) * Remove types that were marked as deprecated in Feb 2024 * remove the test for deprecated type * add Amount interface (#2289) * Update generated code for v1641 * Update generated code for v1641 * Update generated code for v1641 * Update generated code for v1641 * Support for APIs in the new API version 2025-03-31.basil (#2279) Update generated code for v1641 Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> * Update generated code for v1642 * Update generated code for v1642 * Update generated code (#2291) * Update generated code for v1642 * Update generated code for v1642 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> * Update generated code for v1645 * Update generated code for v1646 --------- Co-authored-by: Jonathan Steele <[email protected]> Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: prathmesh-stripe <[email protected]> Co-authored-by: Prathmesh Ranaut <[email protected]> Co-authored-by: Ramya Rao <[email protected]> Co-authored-by: David Brownman <[email protected]> Co-authored-by: helenye-stripe <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Adds an example Route Handler for handling webhook events in Next.js App Router projects.
Mostly a copy/paste from the example I added to the Next.js repo.