better_auth-stripe 0.5.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/better_auth/plugins/stripe.rb +62 -874
- data/lib/better_auth/stripe/client_adapter.rb +71 -0
- data/lib/better_auth/stripe/error_codes.rb +32 -0
- data/lib/better_auth/stripe/hooks.rb +151 -0
- data/lib/better_auth/stripe/metadata.rb +85 -0
- data/lib/better_auth/stripe/middleware.rb +52 -0
- data/lib/better_auth/stripe/organization_hooks.rb +73 -0
- data/lib/better_auth/stripe/plugin_factory.rb +57 -0
- data/lib/better_auth/stripe/routes/cancel_subscription.rb +46 -0
- data/lib/better_auth/stripe/routes/cancel_subscription_callback.rb +33 -0
- data/lib/better_auth/stripe/routes/create_billing_portal.rb +35 -0
- data/lib/better_auth/stripe/routes/index.rb +24 -0
- data/lib/better_auth/stripe/routes/list_active_subscriptions.rb +32 -0
- data/lib/better_auth/stripe/routes/restore_subscription.rb +49 -0
- data/lib/better_auth/stripe/routes/stripe_webhook.rb +42 -0
- data/lib/better_auth/stripe/routes/subscription_success.rb +64 -0
- data/lib/better_auth/stripe/routes/upgrade_subscription.rb +149 -0
- data/lib/better_auth/stripe/schema.rb +93 -0
- data/lib/better_auth/stripe/types.rb +18 -0
- data/lib/better_auth/stripe/utils.rb +190 -0
- data/lib/better_auth/stripe/version.rb +1 -1
- data/lib/better_auth/stripe.rb +19 -5
- metadata +20 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d60c9b90345ede9ff5fda0bc9420f0f9d2cc415312e0a587daa1e2aa451ec109
|
|
4
|
+
data.tar.gz: cdd8dfe8742cdc419eb0c94082ad9d5e30b9d6466bc938253cd54267e1e547fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca83e6cbfc4c7ea4dc1f488ac3a91fe842a5fb19cfdd3754d9c334f65b9eb5e8ef1d01ba0c5c350f48a037a06a3e02665906d32f49b60a294878f2657ef0f66b
|
|
7
|
+
data.tar.gz: 768570c25480a3549a1c85a795cfce82c7a0462ef8c15687619fd682c4aaa4ce9d3193e8490bc6496244ef1d88937a232ca6d3a8136b26223f199018755f02ff
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.6.0] - 2026-05-02
|
|
6
|
+
|
|
7
|
+
- Modularized the Stripe plugin into upstream-aligned client, schema, middleware, hooks, route, metadata, type, and utility modules while keeping the existing public facade.
|
|
8
|
+
- Added high-value parity coverage for schema merging, plugin version metadata, reference authorization, subscription routes, webhook edge cases, and seat-based billing.
|
|
9
|
+
- Preserved custom schema field names and exposed plugin version metadata for closer upstream Better Auth parity.
|
|
10
|
+
|
|
5
11
|
## [0.2.1] - 2026-04-30
|
|
6
12
|
|
|
7
13
|
- Fixed Stripe checkout and subscription parity edge cases for reused customer IDs, plugin-owned schedule releases, missing checkout sessions, plan limits, and organization reference validation.
|