Skip to content

Conversation

@dayhaysoos
Copy link
Owner

Summary

  • update checkout redirects to use Stripe session URLs while keeping a legacy sessionId fallback
  • align React/Stripe/testing dependencies with current releases and Stripe v8 requirements
  • refresh docs and type examples for the updated checkout flow

Testing

  • pnpm --filter use-shopping-cart run test
  • pnpm --filter use-shopping-cart run test:types

Update dependencies and docs to use session URLs so Stripe v8 works without deprecated redirects.
@cursor
Copy link

cursor bot commented Jan 20, 2026

PR Summary

Aligns checkout with Stripe v8 using session.url

  • Core: Add flexible redirectToCheckout(input) that accepts a session.url or legacy sessionId; implement browser redirect for URLs and Stripe.js fallback for IDs; validate publishable key format; expose types in core and react d.ts
  • Tests: New/updated unit tests in core/stripe.test.ts and ShoppingCart.test.ts for missing input, key validation, and browser-only behavior
  • Docs: Replace sessionId flow with sessionUrl across guides (actions, hooks, getting-started, serverless examples) and Stripe references; clarify notes about Stripe.js v8
  • Examples: Update client/server snippets to return/use { sessionUrl } and call redirectToCheckout(sessionUrl)
  • Site: Minor UI tweak in HeroShowcase padding and remove old badge from home; update badges; wording in payment-providers.md
  • Deps: Bump docs React/React DOM and type packages to 19.2.3

Written by Cursor Bugbot for commit 8447e3e. This will update automatically on new commits. Configure here.

@github-actions github-actions bot added package Changes to use-shopping-cart package tests Changes to tests in use-shopping-cart labels Jan 20, 2026
Use a valid Shields style parameter so the docs build can read image dimensions.
Remove the React 19 tag and tighten the showcase card padding.
@dayhaysoos dayhaysoos merged commit a2cd558 into react-19 Jan 21, 2026
6 checks passed
@dayhaysoos dayhaysoos deleted the chore/update-packages-2026-01 branch January 21, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package Changes to use-shopping-cart package tests Changes to tests in use-shopping-cart

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant