v1.3.27-g: Fix credit-balance-summary action body format
This commit is contained in:
parent
d5a8b46981
commit
ea2e394348
|
|
@ -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": [
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue