[PR #1588] [MERGED] feat: stripe plugin to handle subscriptions and customers #20780

Closed
opened 2026-04-15 19:55:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1588
Author: @Bekacru
Created: 2/27/2025
Status: Merged
Merged: 2/28/2025
Merged by: @Bekacru

Base: mainHead: feat/stripe


📝 Commits (10+)

📊 Changes

34 files changed (+3384 additions, -70 deletions)

View changed files

📝 demo/nextjs/app/(auth)/sign-in/page.tsx (+14 -1)
demo/nextjs/app/dashboard/change-plan.tsx (+190 -0)
📝 demo/nextjs/app/dashboard/page.tsx (+8 -1)
demo/nextjs/app/dashboard/upgrade-button.tsx (+37 -0)
📝 demo/nextjs/app/dashboard/user-card.tsx (+66 -16)
demo/nextjs/app/pricing/page.tsx (+59 -0)
demo/nextjs/components/blocks/pricing.tsx (+235 -0)
demo/nextjs/components/tier-labels.tsx (+38 -0)
📝 demo/nextjs/lib/auth-client.ts (+4 -0)
📝 demo/nextjs/lib/auth.ts (+39 -4)
📝 demo/nextjs/package.json (+4 -0)
📝 docs/components/sidebar-content.tsx (+22 -1)
docs/content/docs/plugins/stripe.mdx (+707 -0)
📝 packages/better-auth/src/__snapshots__/init.test.ts.snap (+1 -0)
📝 packages/better-auth/src/api/middlewares/origin-check.ts (+5 -2)
📝 packages/better-auth/src/cookies/cookie-utils.ts (+34 -0)
📝 packages/better-auth/src/init.ts (+14 -1)
📝 packages/better-auth/src/integrations/next-js.ts (+1 -1)
📝 packages/better-auth/src/oauth2/state.ts (+1 -0)
📝 packages/better-auth/src/plugins/oidc-provider/index.ts (+3 -0)

...and 14 more files

📄 Description

closes #99


🔄 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/1588 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 2/27/2025 **Status:** ✅ Merged **Merged:** 2/28/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/stripe` --- ### 📝 Commits (10+) - [`73a58ca`](https://github.com/better-auth/better-auth/commit/73a58ca9f9c01d6b96f2382bdf47ba59b336aa67) init - [`d1b5766`](https://github.com/better-auth/better-auth/commit/d1b5766a926ad2a5d3e5f9333e495d18766c31a8) wip - [`845f69f`](https://github.com/better-auth/better-auth/commit/845f69f6769c651b51b794e035bd8884a69b6883) wip - [`7aaf855`](https://github.com/better-auth/better-auth/commit/7aaf855ab97f45aec3452a32bf25f39c967e06a8) wip - [`54edc8e`](https://github.com/better-auth/better-auth/commit/54edc8e75203b86d23f10a58ee58f174309bf771) wip - [`2a478f7`](https://github.com/better-auth/better-auth/commit/2a478f71a7f0f4b55e7646ab74d4bb3e86d39ef1) wip - [`f3e1eaa`](https://github.com/better-auth/better-auth/commit/f3e1eaa7c805d122d952a4e73b8ebe4255567f1f) Merge branch 'v1.2' into feat/stripe - [`53676ae`](https://github.com/better-auth/better-auth/commit/53676ae251f698decd9fa4e93dd003eee6194828) wip - [`b449524`](https://github.com/better-auth/better-auth/commit/b4495240dc67df93110d8b82bf6b4947ed71fc73) Merge branch 'v1.2' into feat/stripe - [`e4f26f2`](https://github.com/better-auth/better-auth/commit/e4f26f271bf3e5ca78dec01c0e3f51236508dd00) wip ### 📊 Changes **34 files changed** (+3384 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/app/(auth)/sign-in/page.tsx` (+14 -1) ➕ `demo/nextjs/app/dashboard/change-plan.tsx` (+190 -0) 📝 `demo/nextjs/app/dashboard/page.tsx` (+8 -1) ➕ `demo/nextjs/app/dashboard/upgrade-button.tsx` (+37 -0) 📝 `demo/nextjs/app/dashboard/user-card.tsx` (+66 -16) ➕ `demo/nextjs/app/pricing/page.tsx` (+59 -0) ➕ `demo/nextjs/components/blocks/pricing.tsx` (+235 -0) ➕ `demo/nextjs/components/tier-labels.tsx` (+38 -0) 📝 `demo/nextjs/lib/auth-client.ts` (+4 -0) 📝 `demo/nextjs/lib/auth.ts` (+39 -4) 📝 `demo/nextjs/package.json` (+4 -0) 📝 `docs/components/sidebar-content.tsx` (+22 -1) ➕ `docs/content/docs/plugins/stripe.mdx` (+707 -0) 📝 `packages/better-auth/src/__snapshots__/init.test.ts.snap` (+1 -0) 📝 `packages/better-auth/src/api/middlewares/origin-check.ts` (+5 -2) 📝 `packages/better-auth/src/cookies/cookie-utils.ts` (+34 -0) 📝 `packages/better-auth/src/init.ts` (+14 -1) 📝 `packages/better-auth/src/integrations/next-js.ts` (+1 -1) 📝 `packages/better-auth/src/oauth2/state.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+3 -0) _...and 14 more files_ </details> ### 📄 Description closes #99 --- <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-15 19:55:19 -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#20780