[PR #3360] [CLOSED] feat(stripe) : add billing portal session endpoint #13028

Closed
opened 2026-04-13 08:42:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3360
Author: @rhitune2
Created: 7/13/2025
Status: Closed

Base: nextHead: feat/create-billing-portal


📝 Commits (6)

  • 0b38176 feat(stripe) : add billing portal session endpoint
  • 8e94b94 Update packages/stripe/src/index.ts
  • 019d76e Merge branch 'main' into pr/3360
  • dcc9eec fix: test should use trusted origin
  • 3dd290c fix typecheck
  • c3d3051 update docs

📊 Changes

4 files changed (+135 additions, -2 deletions)

View changed files

📝 docs/content/docs/plugins/stripe.mdx (+27 -0)
📝 packages/stripe/src/index.ts (+70 -1)
📝 packages/stripe/src/stripe.test.ts (+36 -0)
📝 packages/stripe/src/types.ts (+2 -1)

📄 Description

add createBillingPortalSession endpoint to stripe plugin
tests passed


Summary by cubic

Added a new endpoint to the Stripe plugin for creating billing portal sessions, allowing users to manage subscriptions and billing details through Stripe.

  • New Features
    • Added createBillingPortalSession endpoint to generate a Stripe billing portal URL for authenticated users.
    • Updated documentation with usage examples and requirements.
    • Added tests to cover billing portal session creation.

🔄 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/3360 **Author:** [@rhitune2](https://github.com/rhitune2) **Created:** 7/13/2025 **Status:** ❌ Closed **Base:** `next` ← **Head:** `feat/create-billing-portal` --- ### 📝 Commits (6) - [`0b38176`](https://github.com/better-auth/better-auth/commit/0b381767459661e7615f31a633ab45ee811c87d1) feat(stripe) : add billing portal session endpoint - [`8e94b94`](https://github.com/better-auth/better-auth/commit/8e94b949f7e23d6f695b18fcf2e8f525bc4de269) Update packages/stripe/src/index.ts - [`019d76e`](https://github.com/better-auth/better-auth/commit/019d76e125473cac406e5366811d3853a8b419fa) Merge branch 'main' into pr/3360 - [`dcc9eec`](https://github.com/better-auth/better-auth/commit/dcc9eec75648477ad3675152c61990760aaa6ba7) fix: test should use trusted origin - [`3dd290c`](https://github.com/better-auth/better-auth/commit/3dd290cce7fe46998971e975f6feae3196ac0abc) fix typecheck - [`c3d3051`](https://github.com/better-auth/better-auth/commit/c3d305102761a34ee40d9e1ef6b86270f2a15498) update docs ### 📊 Changes **4 files changed** (+135 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/stripe.mdx` (+27 -0) 📝 `packages/stripe/src/index.ts` (+70 -1) 📝 `packages/stripe/src/stripe.test.ts` (+36 -0) 📝 `packages/stripe/src/types.ts` (+2 -1) </details> ### 📄 Description add createBillingPortalSession endpoint to stripe plugin tests passed <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added a new endpoint to the Stripe plugin for creating billing portal sessions, allowing users to manage subscriptions and billing details through Stripe. - **New Features** - Added `createBillingPortalSession` endpoint to generate a Stripe billing portal URL for authenticated users. - Updated documentation with usage examples and requirements. - Added tests to cover billing portal session creation. <!-- 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-13 08:42:38 -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#13028