[PR #2316] [CLOSED] [CLOSED] feat/stripe-update #12506

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2316
Author: @kkMihai
Created: 4/16/2025
Status: Closed

Base: mainHead: feat/stripe-update


📝 Commits (7)

  • b8a4266 feat: update to Stripe v18.0.0
  • 6765881 fix: remove unused parameter (e)
  • abbb052 fix: Local variable newSubscription is redundant
  • 2226e6f fix: remove unused parameter ctx
  • 530f9a6 feat: upgrade Stripe to version 18.0.0 in pnpm-lock.yaml
  • b3ef961 feat: upgrade Stripe to version 18.0.0 in pnpm-lock.yaml
  • 033b526 Merge remote-tracking branch 'origin/feat/stripe-update' into feat/stripe-update

📊 Changes

4 files changed (+1219 additions, -1214 deletions)

View changed files

📝 packages/stripe/package.json (+1 -1)
📝 packages/stripe/src/hooks.ts (+227 -219)
📝 packages/stripe/src/index.ts (+972 -971)
📝 pnpm-lock.yaml (+19 -23)

📄 Description

Dependency Upgrade:

Code Consistency:

Subscription Period Date Calculation:

  • packages/stripe/src/hooks.ts: Updated the logic for calculating periodStart and periodEnd dates using subscription.items.data[0].current_period_start and subscription.items.data[0].current_period_end respectively. [1] [2]
  • packages/stripe/src/index.ts: Updated the logic for calculating periodStart and periodEnd dates using stripeSubscription.items.data[0].current_period_start and stripeSubscription.items.data[0].current_period_end respectively.

🔄 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/2316 **Author:** [@kkMihai](https://github.com/kkMihai) **Created:** 4/16/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/stripe-update` --- ### 📝 Commits (7) - [`b8a4266`](https://github.com/better-auth/better-auth/commit/b8a4266ce919ea77bf61c9a151bb6ecb2cd334f7) feat: update to Stripe v18.0.0 - [`6765881`](https://github.com/better-auth/better-auth/commit/6765881c655a700718f67fe3778621e022b4bcc9) fix: remove unused parameter (e) - [`abbb052`](https://github.com/better-auth/better-auth/commit/abbb052c3468729e0d6b1919bad12a523cff702c) fix: Local variable newSubscription is redundant - [`2226e6f`](https://github.com/better-auth/better-auth/commit/2226e6ff23281425ebda8b39de78cd7bc7ba56c1) fix: remove unused parameter ctx - [`530f9a6`](https://github.com/better-auth/better-auth/commit/530f9a69552722fa658f6c35c46cbb7619963f1c) feat: upgrade Stripe to version 18.0.0 in pnpm-lock.yaml - [`b3ef961`](https://github.com/better-auth/better-auth/commit/b3ef9618aa01f536166487ff48b65dd8124a2e11) feat: upgrade Stripe to version 18.0.0 in pnpm-lock.yaml - [`033b526`](https://github.com/better-auth/better-auth/commit/033b526ce341c950a346c08c9088713b299ce5c5) Merge remote-tracking branch 'origin/feat/stripe-update' into feat/stripe-update ### 📊 Changes **4 files changed** (+1219 additions, -1214 deletions) <details> <summary>View changed files</summary> 📝 `packages/stripe/package.json` (+1 -1) 📝 `packages/stripe/src/hooks.ts` (+227 -219) 📝 `packages/stripe/src/index.ts` (+972 -971) 📝 `pnpm-lock.yaml` (+19 -23) </details> ### 📄 Description Dependency Upgrade: * [`packages/stripe/package.json`](diffhunk://#diff-2757b5358a7885372a3e494ce4ec980483ceda7522dd1b61eb52e151772ac9e1L49-R49): Upgraded the `stripe` package from version `17.7.0` to `18.0.0`. Code Consistency: * [`packages/stripe/src/hooks.ts`](diffhunk://#diff-72e8dafae00019b1cb067d0577a11924409d13aacf09333fcd9406aa5389b8f4L1-R1): Reordered imports for better readability and consistency. * [`packages/stripe/src/index.ts`](diffhunk://#diff-ccb5282d4490ceec8e8c99f978be2383dd1915db21316f3baba6066420070b08L2-R13): Reordered imports for better readability and consistency. [[1]](diffhunk://#diff-ccb5282d4490ceec8e8c99f978be2383dd1915db21316f3baba6066420070b08L2-R13) [[2]](diffhunk://#diff-ccb5282d4490ceec8e8c99f978be2383dd1915db21316f3baba6066420070b08L262-R262) [[3]](diffhunk://#diff-ccb5282d4490ceec8e8c99f978be2383dd1915db21316f3baba6066420070b08L326-R326) [[4]](diffhunk://#diff-ccb5282d4490ceec8e8c99f978be2383dd1915db21316f3baba6066420070b08L339) [[5]](diffhunk://#diff-ccb5282d4490ceec8e8c99f978be2383dd1915db21316f3baba6066420070b08L946-R947) Subscription Period Date Calculation: * [`packages/stripe/src/hooks.ts`](diffhunk://#diff-72e8dafae00019b1cb067d0577a11924409d13aacf09333fcd9406aa5389b8f4L44-R49): Updated the logic for calculating `periodStart` and `periodEnd` dates using `subscription.items.data[0].current_period_start` and `subscription.items.data[0].current_period_end` respectively. [[1]](diffhunk://#diff-72e8dafae00019b1cb067d0577a11924409d13aacf09333fcd9406aa5389b8f4L44-R49) [[2]](diffhunk://#diff-72e8dafae00019b1cb067d0577a11924409d13aacf09333fcd9406aa5389b8f4L141-R150) * [`packages/stripe/src/index.ts`](diffhunk://#diff-ccb5282d4490ceec8e8c99f978be2383dd1915db21316f3baba6066420070b08L834-R838): Updated the logic for calculating `periodStart` and `periodEnd` dates using `stripeSubscription.items.data[0].current_period_start` and `stripeSubscription.items.data[0].current_period_end` respectively. --- <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:25:50 -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#12506