stack/packages/stack-shared/src
BilalG1 d6dc85b6d6
upgrade/downgrade plans (#1087)
https://www.loom.com/share/f218c4d16b4d4306be93685aad7aed7a
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* One-click subscription switching (client + server) and UI dialog to
choose alternative plans
  * Products now show available plan alternatives (switch options)

* **Improvements**
* More robust default payment-method handling, validation, and clearer
errors when none is set
  * Improved payment-method retrieval and customer metadata persistence

* **Tests**
  * End-to-end tests for plan switching and updated billing snapshots

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-01-14 00:17:29 +00:00
..
apps Onboarding app & restricted users (#1069) 2026-01-11 17:22:14 -08:00
config Onboarding app & restricted users (#1069) 2026-01-11 17:22:14 -08:00
helpers Email templates and project logos (#852) 2025-11-19 19:12:20 -08:00
hooks Payments UX update (#863) 2025-08-27 17:28:01 -07:00
interface upgrade/downgrade plans (#1087) 2026-01-14 00:17:29 +00:00
utils Fix "Manage team settings" link 2026-01-12 14:33:16 -08:00
crud.tsx Config DB (#568) 2025-04-10 19:38:25 +02:00
global.d.ts Replace required() of yup schemas with defined() 2024-11-18 20:08:55 +01:00
index.ts [docs][dashboard][stack-shared] Update docs to new apps (#996) 2025-11-12 15:45:30 -06:00
known-errors.tsx upgrade/downgrade plans (#1087) 2026-01-14 00:17:29 +00:00
schema-fields.ts Onboarding app & restricted users (#1069) 2026-01-11 17:22:14 -08:00
sessions.ts Onboarding app & restricted users (#1069) 2026-01-11 17:22:14 -08:00