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",
|
"name": "@bowong/better-auth-stripe",
|
||||||
"author": "Bowong",
|
"author": "Bowong",
|
||||||
"version": "1.3.27-f",
|
"version": "1.3.27-g",
|
||||||
"main": "dist/index.cjs",
|
"main": "dist/index.cjs",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
||||||
|
|
@ -1462,9 +1462,10 @@ export const stripe = <O extends StripeOptions>(options: O) => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// todo : stripe credit balance summary api not working yet, apply workaround
|
// todo : stripe credit balance summary api not working yet, apply workaround
|
||||||
|
const { subscriptionId, ...other} = ctx.body;
|
||||||
const creditBalance = await client.billing.creditBalanceSummary.retrieve(
|
const creditBalance = await client.billing.creditBalanceSummary.retrieve(
|
||||||
{
|
{
|
||||||
...ctx.body,
|
...other,
|
||||||
customer: customerId
|
customer: customerId
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue