[PR #3625] [MERGED] feat: create billing portal session #30522

Closed
opened 2026-04-17 21:35:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3625
Author: @rhitune2
Created: 7/26/2025
Status: Merged
Merged: 8/6/2025
Merged by: @Bekacru

Base: mainHead: feat/billing-portal


📝 Commits (9)

  • 0b38176 feat(stripe) : add billing portal session endpoint
  • 768cc29 create billing portal session
  • 9ab62c5 Merge branch 'main' into feat/billing-portal
  • 0ef6a77 update docs
  • 7e3c9e1 chore: changeset
  • a3e25b0 chore: fix stripe
  • 30e411a Merge branch 'main' into feat/billing-portal
  • 7135970 chore: remove comment
  • fabc241 chore: update docs

📊 Changes

5 files changed (+138 additions, -3 deletions)

View changed files

.changeset/kind-rice-poke.md (+5 -0)
📝 docs/content/docs/plugins/stripe.mdx (+26 -1)
📝 packages/stripe/src/index.ts (+69 -1)
📝 packages/stripe/src/stripe.test.ts (+36 -0)
📝 packages/stripe/src/types.ts (+2 -1)

📄 Description

@Bekacru it was closed accidentally


Summary by cubic

Added a new API endpoint to create Stripe billing portal sessions, allowing users to manage subscriptions, payment methods, and billing history from your app.

  • New Features
    • Added /subscription/billing-portal endpoint with support in the Stripe plugin, docs, and tests.
    • Updated authorization logic and types to include the new billing portal action.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3625 **Author:** [@rhitune2](https://github.com/rhitune2) **Created:** 7/26/2025 **Status:** ✅ Merged **Merged:** 8/6/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/billing-portal` --- ### 📝 Commits (9) - [`0b38176`](https://github.com/better-auth/better-auth/commit/0b381767459661e7615f31a633ab45ee811c87d1) feat(stripe) : add billing portal session endpoint - [`768cc29`](https://github.com/better-auth/better-auth/commit/768cc29da3c63fdba6c8f5137d340727e6f2f52c) create billing portal session - [`9ab62c5`](https://github.com/better-auth/better-auth/commit/9ab62c588e9f8721993a144ad94ddd4dfbc73553) Merge branch 'main' into feat/billing-portal - [`0ef6a77`](https://github.com/better-auth/better-auth/commit/0ef6a77fe65e236af17357f2b06934325add36d3) update docs - [`7e3c9e1`](https://github.com/better-auth/better-auth/commit/7e3c9e1d1e8ccdc3c747b4938e1545ca8fa2fc18) chore: changeset - [`a3e25b0`](https://github.com/better-auth/better-auth/commit/a3e25b0d8a78415021bf8c3c6cccdc7358577103) chore: fix stripe - [`30e411a`](https://github.com/better-auth/better-auth/commit/30e411a3db344dc818a4b02441e9c4118d9fdc75) Merge branch 'main' into feat/billing-portal - [`7135970`](https://github.com/better-auth/better-auth/commit/71359701bbbcf9dca06345c4c54744c6727c1726) chore: remove comment - [`fabc241`](https://github.com/better-auth/better-auth/commit/fabc241d7e978cc17915579ef53c479b767ea082) chore: update docs ### 📊 Changes **5 files changed** (+138 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/kind-rice-poke.md` (+5 -0) 📝 `docs/content/docs/plugins/stripe.mdx` (+26 -1) 📝 `packages/stripe/src/index.ts` (+69 -1) 📝 `packages/stripe/src/stripe.test.ts` (+36 -0) 📝 `packages/stripe/src/types.ts` (+2 -1) </details> ### 📄 Description @Bekacru it was closed accidentally <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added a new API endpoint to create Stripe billing portal sessions, allowing users to manage subscriptions, payment methods, and billing history from your app. - **New Features** - Added `/subscription/billing-portal` endpoint with support in the Stripe plugin, docs, and tests. - Updated authorization logic and types to include the new billing portal action. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 21:35:03 -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#30522