[PR #6265] [CLOSED] docs(dodopayments-plugin): add docs for new checkout sessions and usage plugin #14800

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6265
Author: @that-ambuj
Created: 11/24/2025
Status: Closed

Base: mainHead: docs-dodopayments-add-checkout-session-and-usage-plugin-docs


📝 Commits (10+)

📊 Changes

68 files changed (+2523 additions, -700 deletions)

View changed files

📝 .github/workflows/adapter-tests.yml (+1 -1)
📝 .github/workflows/ci.yml (+1 -1)
📝 demo/nextjs/tsconfig.json (+1 -0)
📝 docs/app/blog/[[...slug]]/page.tsx (+9 -4)
📝 docs/app/changelogs/[[...slug]]/page.tsx (+7 -4)
📝 docs/app/community/_components/header.tsx (+3 -2)
📝 docs/app/community/_components/stats.tsx (+27 -1)
📝 docs/app/community/page.tsx (+39 -2)
docs/components/contributors.tsx (+34 -0)
📝 docs/components/floating-ai-search.tsx (+19 -0)
📝 docs/components/sidebar-content.tsx (+1 -0)
📝 docs/content/blogs/1-3.mdx (+1 -1)
📝 docs/content/blogs/1-4.mdx (+22 -7)
📝 docs/content/blogs/seed-round.mdx (+1 -1)
📝 docs/content/docs/adapters/drizzle.mdx (+1 -1)
📝 docs/content/docs/adapters/prisma.mdx (+1 -1)
📝 docs/content/docs/integrations/tanstack.mdx (+1 -1)
📝 docs/content/docs/plugins/api-key.mdx (+181 -0)
📝 docs/content/docs/plugins/community-plugins.mdx (+1 -0)
📝 docs/content/docs/plugins/dodopayments.mdx (+108 -2)

...and 48 more files

📄 Description

Summary by cubic

Adds docs for the new checkoutSession API and the usage() plugin in the Dodo Payments Better Auth plugin. This helps teams adopt the new checkout flow and track metered usage.

  • New Features

    • Documented authClient.dodopayments.checkoutSession with slug and product cart examples.
    • Added notes on auto-filled customer data and server-driven successUrl.
    • Marked legacy authClient.dodopayments.checkout as deprecated.
    • Added usage() plugin setup and examples for ingesting events and listing recent usage.
    • Clarified usage constraints (timestamp window) and meter_id behavior.
    • Updated plugin options to include usage and server setup snippet.
  • Migration

    • Prefer checkoutSession for all new integrations; keep checkout only for existing builds.

Written for commit c7b5092830. Summary will update automatically on new commits.


🔄 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/6265 **Author:** [@that-ambuj](https://github.com/that-ambuj) **Created:** 11/24/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `docs-dodopayments-add-checkout-session-and-usage-plugin-docs` --- ### 📝 Commits (10+) - [`bff00f6`](https://github.com/better-auth/better-auth/commit/bff00f6b7fb3d95363888186cd610ea3e4e0f174) chore: release v1.4.0 - [`e2c474f`](https://github.com/better-auth/better-auth/commit/e2c474f58cb803b36765200bf59d7743cc205d59) chore: update 1.4 og image - [`555e092`](https://github.com/better-auth/better-auth/commit/555e09235839dbe1f243ccbfeeaed1d0f6e6b7cc) commit - [`a1f05b1`](https://github.com/better-auth/better-auth/commit/a1f05b16894b4a8868ce3c8d3d39f25df6c6e47f) chore: lint - [`2f3577c`](https://github.com/better-auth/better-auth/commit/2f3577c55600b525727d64b54b7cf13cbd0bc9a7) docs: fix responsivness for changelog images - [`29564df`](https://github.com/better-auth/better-auth/commit/29564df59f89c1bc7c0aa43b82f8de5d40406480) chore: fix typo - [`9e2b5ce`](https://github.com/better-auth/better-auth/commit/9e2b5ce6322e3a36d6a191772fa47389027f5b4e) chore: fix typo - [`44308bf`](https://github.com/better-auth/better-auth/commit/44308bf20d431bd943a92a2ed4204a6b7d5a4182) feat(api-key): support secondary storage (#6014) - [`69c756a`](https://github.com/better-auth/better-auth/commit/69c756a4101edf805e82f0cd5841a9dbb594c750) chore(docs): fix invalid 1.4 blog links (#6191) - [`6aca409`](https://github.com/better-auth/better-auth/commit/6aca4094280322f7dff2057d1993c38470c3b124) fix(jwt): retrieve latest keys from storage properly (#6208) ### 📊 Changes **68 files changed** (+2523 additions, -700 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/adapter-tests.yml` (+1 -1) 📝 `.github/workflows/ci.yml` (+1 -1) 📝 `demo/nextjs/tsconfig.json` (+1 -0) 📝 `docs/app/blog/[[...slug]]/page.tsx` (+9 -4) 📝 `docs/app/changelogs/[[...slug]]/page.tsx` (+7 -4) 📝 `docs/app/community/_components/header.tsx` (+3 -2) 📝 `docs/app/community/_components/stats.tsx` (+27 -1) 📝 `docs/app/community/page.tsx` (+39 -2) ➕ `docs/components/contributors.tsx` (+34 -0) 📝 `docs/components/floating-ai-search.tsx` (+19 -0) 📝 `docs/components/sidebar-content.tsx` (+1 -0) 📝 `docs/content/blogs/1-3.mdx` (+1 -1) 📝 `docs/content/blogs/1-4.mdx` (+22 -7) 📝 `docs/content/blogs/seed-round.mdx` (+1 -1) 📝 `docs/content/docs/adapters/drizzle.mdx` (+1 -1) 📝 `docs/content/docs/adapters/prisma.mdx` (+1 -1) 📝 `docs/content/docs/integrations/tanstack.mdx` (+1 -1) 📝 `docs/content/docs/plugins/api-key.mdx` (+181 -0) 📝 `docs/content/docs/plugins/community-plugins.mdx` (+1 -0) 📝 `docs/content/docs/plugins/dodopayments.mdx` (+108 -2) _...and 48 more files_ </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds docs for the new checkoutSession API and the usage() plugin in the Dodo Payments Better Auth plugin. This helps teams adopt the new checkout flow and track metered usage. - **New Features** - Documented authClient.dodopayments.checkoutSession with slug and product cart examples. - Added notes on auto-filled customer data and server-driven successUrl. - Marked legacy authClient.dodopayments.checkout as deprecated. - Added usage() plugin setup and examples for ingesting events and listing recent usage. - Clarified usage constraints (timestamp window) and meter_id behavior. - Updated plugin options to include usage and server setup snippet. - **Migration** - Prefer checkoutSession for all new integrations; keep checkout only for existing builds. <sup>Written for commit c7b509283076ff4c785680cbcddb7944612ac9f9. Summary will update automatically on new commits.</sup> <!-- 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 09:38:45 -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#14800