Commit Graph

169 Commits

Author SHA1 Message Date
Taesu
51de32e1e8 fix(stripe): lock library-owned Checkout Session fields against getCheckoutSessionParams (#9481) 2026-05-07 04:47:02 +00:00
Taesu
07b52cbb79 fix(stripe): preserve freeTrial and internal metadata in getCheckoutSessionParams merge (#9474) 2026-05-06 15:36:52 +00:00
Taesu
3e4fc8ca74 fix(stripe): pass post-update subscription to onSubscriptionDeleted and trial callbacks (#9356) 2026-04-26 10:26:56 +00:00
Taesu
012b4e6331 refactor(stripe): rename subscription webhook variables for clarity (#9355) 2026-04-26 09:56:30 +00:00
Taesu
5d24a7478b fix(stripe): expose stripeSubscription in onSubscriptionUpdate and fix stale snapshot (#9354) 2026-04-26 09:41:11 +00:00
Gustavo Valverde
390a03190c fix(stripe): prevent prototype pollution via user-supplied metadata (#9164) 2026-04-14 08:05:31 +00:00
Taesu
c5066fe5d6 fix(stripe): omit quantity for metered prices in checkout and upgrades (#8926)
Co-authored-by: better-release[bot] <273320539+better-release[bot]@users.noreply.github.com>
2026-04-10 12:55:44 +00:00
Taesu
5f84335815 feat(stripe): support Stripe SDK v21 and v22 (#9084)
Co-authored-by: leonardo2204 <1509421+leonardo2204@users.noreply.github.com>
Co-authored-by: better-release[bot] <273320539+better-release[bot]@users.noreply.github.com>
2026-04-10 06:19:34 +00:00
Jonathan Samines
cd01a42e60 feat: expose plugin version (#8750) 2026-03-31 16:08:21 +00:00
Taesu
03d2df6603 fix(stripe): return correct priceId for annual subscriptions in list (#8810)
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
2026-03-29 06:10:40 +10:00
Taesu
884e14a388 fix(stripe): improve organization customer search by adding customerType check (#8609) 2026-03-17 09:55:22 +00:00
Taesu
db470986c5 fix(stripe): replace {CHECKOUT_SESSION_ID} placeholder in success callbackURL (#8568) 2026-03-12 23:02:26 +00:00
Taesu
9fdd66251d feat(stripe): allow customizable prorationBehavior per plan (#8525) 2026-03-11 01:34:54 +00:00
Alex Yang
b73b0440a2 chore: align zod imports to use namespace import from "zod" (#8300) 2026-03-02 20:37:38 +00:00
Taesu
e802eaebac fix(stripe): use CHECKOUT_SESSION_ID for success_url and remove cancel callback (#8095) 2026-02-22 09:15:50 -08:00
Taesu
96dc13a404 feat(stripe): track subscription schedule ID for pending plan changes (#8070) 2026-02-20 00:19:35 +00:00
Taesu
5eebbe96a9 fix(stripe): inject metadata to schedules on update, not on create (#8069) 2026-02-19 16:03:11 +00:00
Taesu
9ca0fa32a7 fix(stripe): handle line item price replacement on plan upgrade (#8066) 2026-02-19 15:26:50 +00:00
Taesu
5180893ae6 feat(stripe): add scheduleAtPeriodEnd option to defer plan changes (#8064) 2026-02-19 14:34:17 +00:00
Taesu
76d9ba140c fix(stripe): use correct stripeCustomerId on /subscription/cancel/callback endpoint (#8032) 2026-02-18 02:47:41 +00:00
Taesu
74e06e426c fix(stripe): fall back to customers.list when customers.search API is unavailable (#7965) 2026-02-15 07:44:16 +00:00
Taesu
0a1dd5fbf3 feat(stripe): add billingInterval field to subscription (#7221) 2026-02-13 22:15:10 +00:00
Taesu
ddc2740724 fix(stripe): propagate trial data in subscription webhook handlers (#7955) 2026-02-13 03:35:09 +00:00
Taesu
04217429c5 fix(stripe): drop metered billing, use generic lineItems instead (#7951) 2026-02-12 22:17:22 +00:00
Taesu
7950f98df0 fix(stripe): remove getSubscriptionUsage endpoint (#7949) 2026-02-12 20:50:17 +00:00
Taesu
4fb5227641 fix(stripe): prevent duplicate line item when priceId equals seatPriceId (#7947) 2026-02-12 20:18:42 +00:00
Taesu
9b5a786175 fix(stripe): move meters config into plans for usage-based billing (#7946) 2026-02-12 18:13:48 +00:00
Alex Yang
d5955d6ab2 chore: bump version (#7882) 2026-02-12 13:27:12 +00:00
Taesu
dcd9337616 feat(stripe): add seat-based billing and usage-based billing (#7930) 2026-02-11 23:50:39 +00:00
Alex Yang
00c95728f1 Revert "feat: make name field optional (#7617)"
This reverts commit e0df7c9e38.
2026-02-02 10:52:19 -08:00
Taesu
fe92103d47 fix(stripe): clarify error when authorizeReference is missing (#7741) 2026-02-01 09:15:14 +00:00
Taesu
e0df7c9e38 feat: make name field optional (#7617) 2026-01-29 23:42:52 +00:00
Alex Yang
b0a6fb89c4 chore: bump version (#7626) 2026-01-27 21:05:02 +00:00
Taesu
9145c9233d refactor(stripe): centralize internal metadata management (#7561) 2026-01-23 20:57:00 +00:00
Tim Keller
6a1ff9bea9 docs: use type-only import for BetterAuthClientPlugin (#7565)
Co-authored-by: Alex Yang <himself65@outlook.com>
2026-01-23 19:34:53 +00:00
Taesu
16f4569dde fix(stripe): find active subscription correctly when upgrading (#7547) 2026-01-22 20:47:57 +00:00
Alex Yang
50de0a1d48 refactor: generic in BetterAuthPluginRegistry (#7514) 2026-01-22 20:33:12 +00:00
Taesu
f716e08f0e fix(stripe): allow billing interval change for same plan (#7542) 2026-01-22 19:30:57 +00:00
DIYgod
0142eb1bed fix(stripe): allow re-subscribing to the same plan when subscription has expired (#7459)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Taesu <bytaesu@gmail.com>
Co-authored-by: Taesu <166604494+bytaesu@users.noreply.github.com>
2026-01-20 23:55:22 +00:00
Taesu
2fe46342b5 feat(stripe): add support for locale option to upgradeSubscription (#7421) 2026-01-16 21:14:29 +00:00
Taesu
e0230a8c58 fix(stripe): add generic return type to getSchema for proper field inference (#7353) 2026-01-14 11:13:46 -08:00
Taesu
cf219a50e0 docs: clarify URL parameter descriptions for subscription upgrade (#7344)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-14 10:12:37 +09:00
Alex Yang
7ab73b1c08 refactor(core): split utils into small files (#7288) 2026-01-12 10:57:51 -08:00
Alex Yang
91331a9607 chore(core): add BetterAuthPluginRegistry for type system (#7146) 2026-01-07 14:51:28 +08:00
Taesu
94a9570423 feat(stripe): enhance stripe plugin with organization customer support (#7142)
Co-authored-by: Cmion <Cmion@users.noreply.github.com>
2026-01-07 10:28:36 +09:00
Taesu
abf979c6c7 fix(stripe): prevent duplicate subscription creation when a subscription already exists (#7104) 2026-01-03 16:25:12 +08:00
Taesu
6e4821cef5 fix(stripe): pass metadata to subscription object in upgrade method (#7090) 2026-01-02 13:26:58 +09:00
Taesu
a420081245 fix(stripe): Improve error handling and subscriptionSuccess route (#7087) 2026-01-02 06:42:03 +09:00
Alex Yang
5cc56b01e7 feat(stripe): add disableRedirect option for subscription and billing (#7068)
Co-authored-by: Valerii Strilets <valerii.strilets@gmail.com>
2025-12-31 17:36:04 +08:00
Taesu
bb89498d58 feat(stripe): handle customer.subscription.created webhook event (#6924)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Alex Yang <himself65@outlook.com>
2025-12-31 04:25:35 +09:00