[PR #5821] feat(stripe): allow flexible types in plan limits #14498

Closed
opened 2026-04-13 09:30:24 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5821

State: closed
Merged: Yes


Since this field acts as metadata injected into the plan, it’s fine to give users more flexibility.

Closes https://github.com/better-auth/better-auth/issues/4977


Summary by cubic

Allow flexible types in Stripe plan limits so teams can store plan-specific metadata. Numbers, arrays, and objects are supported and preserved through subscription APIs.

  • New Features
    • Changed StripePlan.limits to Record<string, unknown>.
    • Added tests to validate numbers, arrays, objects, and mixed structures.
    • Updated docs to explain flexible limits and metadata usage.

Written for commit 6f6e76fbae. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5821 **State:** closed **Merged:** Yes --- Since this field acts as metadata injected into the plan, it’s fine to give users more flexibility. Closes https://github.com/better-auth/better-auth/issues/4977 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Allow flexible types in Stripe plan limits so teams can store plan-specific metadata. Numbers, arrays, and objects are supported and preserved through subscription APIs. - **New Features** - Changed StripePlan.limits to Record<string, unknown>. - Added tests to validate numbers, arrays, objects, and mixed structures. - Updated docs to explain flexible limits and metadata usage. <sup>Written for commit 6f6e76fbae3d2a9bee7e6b6e47a9242a89dff6fb. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:30:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14498