v1.3.27-g: Fix credit-balance-summary action body format

This commit is contained in:
Yudi Xiao 2025-10-15 17:45:16 +08:00
parent d5a8b46981
commit ea2e394348
2 changed files with 3 additions and 2 deletions

View File

@ -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": [

View File

@ -1462,9 +1462,10 @@ export const stripe = <O extends StripeOptions>(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
}
);