From ea2e394348a480c70e48a354831a5f041d0a04d4 Mon Sep 17 00:00:00 2001 From: Yudi Xiao <463708580@qq.com> Date: Wed, 15 Oct 2025 17:45:16 +0800 Subject: [PATCH] v1.3.27-g: Fix credit-balance-summary action body format --- package.json | 2 +- src/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 28ba45a..601fad2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bowong/better-auth-stripe", "author": "Bowong", - "version": "1.3.27-f", + "version": "1.3.27-g", "main": "dist/index.cjs", "license": "MIT", "keywords": [ diff --git a/src/index.ts b/src/index.ts index 80e3e78..8c38464 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1462,9 +1462,10 @@ export const stripe = (options: O) => { try { // todo : stripe credit balance summary api not working yet, apply workaround + const { subscriptionId, ...other} = ctx.body; const creditBalance = await client.billing.creditBalanceSummary.retrieve( { - ...ctx.body, + ...other, customer: customerId } );