[GH-ISSUE #1917] Support Stripe subscription.create #8973

Closed
opened 2026-04-13 04:13:28 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ekpah on GitHub (Mar 21, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1917

Is this suited for github?

  • Yes, this is suited for github

Currently, the Stripe plugin does not create an endpoint for "subscription.created". If I manually add a subscription with a discount (e.g. for test purposes) in the stripe dashboard, this will not be reflected in better-auth, as there will be no checkout-session. Also if i open a checkout session and close again, there will be a new subscription marked "incomplete" potentially creating very many subscriptions per user. Would it not be cleaner to use "subscription.created"?

Describe the solution you'd like

Add an endpoint for the stripe webhook subscription.created to update/create a subscription in the database.

Describe alternatives you've considered

There is no huge drawback, as users usually create subscriptions via the checkout-process and the current flow aligns with stripes suggested flow for subscriptions. Alternative would be to keep it like it is with the drawback of missing some subscriptions (created in the dashboard)

Additional context

No response

Originally created by @ekpah on GitHub (Mar 21, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1917 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Currently, the Stripe plugin does not create an endpoint for "subscription.created". If I manually add a subscription with a discount (e.g. for test purposes) in the stripe dashboard, this will not be reflected in better-auth, as there will be no checkout-session. Also if i open a checkout session and close again, there will be a new subscription marked "incomplete" potentially creating very many subscriptions per user. Would it not be cleaner to use "subscription.created"? ### Describe the solution you'd like Add an endpoint for the stripe webhook subscription.created to update/create a subscription in the database. ### Describe alternatives you've considered There is no huge drawback, as users usually create subscriptions via the checkout-process and the current flow aligns with stripes suggested flow for subscriptions. Alternative would be to keep it like it is with the drawback of missing some subscriptions (created in the dashboard) ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 04:13:28 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jun 20, 2025):

Hi, @ekpah. I'm Dosu, and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • Request to add support for "subscription.created" webhook in Stripe plugin.
  • Aim to ensure manually created subscriptions in Stripe dashboard are accurately reflected in better-auth.
  • Current setup may lead to incomplete subscriptions and duplicate entries.
  • No activity or comments since the issue was opened.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the better-auth repository by commenting here.
  • If no updates are provided, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

<!-- gh-comment-id:2992143558 --> @dosubot[bot] commented on GitHub (Jun 20, 2025): Hi, @ekpah. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - Request to add support for "subscription.created" webhook in Stripe plugin. - Aim to ensure manually created subscriptions in Stripe dashboard are accurately reflected in better-auth. - Current setup may lead to incomplete subscriptions and duplicate entries. - No activity or comments since the issue was opened. **Next Steps:** - Please confirm if this issue is still relevant to the latest version of the better-auth repository by commenting here. - If no updates are provided, the issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8973