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 } );