create billing portal session #1683

Closed
opened 2026-03-13 08:55:49 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @fabriziofeitosa on GitHub (Aug 12, 2025).

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. Call authClient.subscription.billingPortal in client component

Current vs. Expected behavior

The property billingPortal does not exist

What version of Better Auth are you using?

1.3.5

System info

System:
    OS: Windows 11 10.0.26100
    CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor
    Memory: 14.18 GB / 31.91 GB
  Browsers:
    Edge: Chromium (139.0.3405.86)
    Internet Explorer: 11.0.26100.1882

Which area(s) are affected? (Select all that apply)

Client

Auth config (if applicable)


Additional context

I installed version 1.3.5 and even deleted the node_modules folder to avoid conflicts but it still doesn't recognize it.

Image
Originally created by @fabriziofeitosa on GitHub (Aug 12, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce 1. Call `authClient.subscription.billingPortal` in client component ### Current vs. Expected behavior The property `billingPortal` does not exist ### What version of Better Auth are you using? 1.3.5 ### System info ```bash System: OS: Windows 11 10.0.26100 CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor Memory: 14.18 GB / 31.91 GB Browsers: Edge: Chromium (139.0.3405.86) Internet Explorer: 11.0.26100.1882 ``` ### Which area(s) are affected? (Select all that apply) Client ### Auth config (if applicable) ```typescript ``` ### Additional context I installed version 1.3.5 and even deleted the `node_modules` folder to avoid conflicts but it still doesn't recognize it. <img width="603" height="724" alt="Image" src="https://github.com/user-attachments/assets/03f6c999-eefc-43a1-8fcc-0cf69240eb91" />
GiteaMirror added the bug label 2026-03-13 08:55:49 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 12, 2025):

Hi @fabriziofeitosa! I'm Dosu and I’m helping the better-auth team.

The property authClient.subscription.billingPortal does not exist in Better Auth v1.3.5 because this feature was added after that version. The billing portal session endpoint and client method were introduced in a pull request merged on 2025-08-06, so you'll only find this functionality in versions released after that date (details).

If you need billing portal or customer portal functionality in v1.3.5, you can use plugins like Dodo Payments or Polar, which provide similar features but with different methods (for example, authClient.customer.portal()). There is no built-in billingPortal method on the subscription object in your current version (example, example).

To use authClient.subscription.billingPortal, you'll need to upgrade to a version of Better Auth released after 2025-08-06.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Aug 12, 2025): <!-- Greeting --> Hi @fabriziofeitosa! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the better-auth team. <!-- Answer --> The property authClient.subscription.billingPortal does not exist in Better Auth v1.3.5 because this feature was added after that version. The billing portal session endpoint and client method were introduced in a pull request merged on 2025-08-06, so you'll only find this functionality in versions released after that date ([details](https://github.com/better-auth/better-auth/pull/3625)). If you need billing portal or customer portal functionality in v1.3.5, you can use plugins like Dodo Payments or Polar, which provide similar features but with different methods (for example, authClient.customer.portal()). There is no built-in billingPortal method on the subscription object in your current version ([example](https://github.com/better-auth/better-auth/issues/3162), [example](https://github.com/better-auth/better-auth/pull/3468)). To use authClient.subscription.billingPortal, you'll need to upgrade to a version of Better Auth released after 2025-08-06. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/9e549ddd-2365-46ed-b939-a404dd057071?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/9e549ddd-2365-46ed-b939-a404dd057071?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/9e549ddd-2365-46ed-b939-a404dd057071?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/9e549ddd-2365-46ed-b939-a404dd057071?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/9e549ddd-2365-46ed-b939-a404dd057071?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/9e549ddd-2365-46ed-b939-a404dd057071?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/9e549ddd-2365-46ed-b939-a404dd057071?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/3943)
Author
Owner

@fabriziofeitosa commented on GitHub (Aug 12, 2025):

v1.3.5 have:

@fabriziofeitosa commented on GitHub (Aug 12, 2025): [v1.3.5](https://github.com/better-auth/better-auth/releases/tag/v1.3.5) have: > - stripe: > - Create billing portal session - by @rhitune2 in https://github.com/better-auth/better-auth/pull/3625 [(b5273)](https://github.com/better-auth/better-auth/commit/b5273623)
Author
Owner

@dosubot[bot] commented on GitHub (Nov 11, 2025):

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

Issue Summary

  • You reported that the billingPortal property was missing in Better Auth v1.3.5 when accessed via authClient.subscription.billingPortal.
  • It was clarified that this feature was introduced after v1.3.5, merged on 2025-08-06, so it is not present in that version.
  • You noted that the v1.3.5 release notes mention the billing portal session feature, causing some confusion.
  • The maintainers acknowledged the need to clarify version availability and improve documentation around this feature.
  • The recommended resolution is to upgrade to a later version where the feature is available or use alternative plugins.

Next Steps

  • Please confirm if this issue is still relevant with the latest version of better-auth; if so, you can keep the discussion open by commenting here.
  • Otherwise, I will automatically close this issue in 7 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Nov 11, 2025): Hi, @fabriziofeitosa. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary** - You reported that the `billingPortal` property was missing in Better Auth v1.3.5 when accessed via `authClient.subscription.billingPortal`. - It was clarified that this feature was introduced after v1.3.5, merged on 2025-08-06, so it is not present in that version. - You noted that the v1.3.5 release notes mention the billing portal session feature, causing some confusion. - The maintainers acknowledged the need to clarify version availability and improve documentation around this feature. - The recommended resolution is to upgrade to a later version where the feature is available or use alternative plugins. **Next Steps** - Please confirm if this issue is still relevant with the latest version of better-auth; if so, you can keep the discussion open by commenting here. - Otherwise, I will automatically close this issue 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#1683