Duki
BABetter Auth
•Created by Glen Kurio on 4/20/2025 in #bug-reports
Stripe plugin create a new customer on subscription.upgrade click.
I experience the same behavior. Have you found out why this is happening yet?
5 replies
BABetter Auth
•Created by Clément on 4/19/2025 in #bug-reports
Period fields not populated after stripe subscription
For anyone reading this, stripe api v18.0.0 is used in BA version
v1.2.8-beta.2
! 🥳18 replies
BABetter Auth
•Created by Clément on 4/19/2025 in #bug-reports
Period fields not populated after stripe subscription
Perfect, thanks a lot for checking in!
18 replies
BABetter Auth
•Created by Clément on 4/19/2025 in #bug-reports
Period fields not populated after stripe subscription
That explains a lot
18 replies
BABetter Auth
•Created by Clément on 4/19/2025 in #bug-reports
Period fields not populated after stripe subscription
Ooh i see it now. They have breaking changes in v18 🙈
18 replies
BABetter Auth
•Created by Clément on 4/19/2025 in #bug-reports
Period fields not populated after stripe subscription
18.0.0
18 replies
BABetter Auth
•Created by Clément on 4/19/2025 in #bug-reports
Period fields not populated after stripe subscription
@Ping Sorry for the ping, but its breaking the subscription flow a bit 🙈
Can you confirm whether this is a bug or if we r missing any configurations? If it's a bug I can create an issue in github when necessary
18 replies
BABetter Auth
•Created by Clément on 4/19/2025 in #bug-reports
Period fields not populated after stripe subscription
Do we have to populate any metadata or something? 🤔
18 replies
BABetter Auth
•Created by Clément on 4/19/2025 in #bug-reports
Period fields not populated after stripe subscription
(shortened some things, because the message would have been too long and I dont have discord nitro)
18 replies
BABetter Auth
•Created by Clément on 4/19/2025 in #bug-reports
Period fields not populated after stripe subscription
And it logs this subscription object:
18 replies
BABetter Auth
•Created by Clément on 4/19/2025 in #bug-reports
Period fields not populated after stripe subscription
In my stripe plugin I added an event hook to check the subscription myself like this:
18 replies
BABetter Auth
•Created by Clément on 4/19/2025 in #bug-reports
Period fields not populated after stripe subscription
Heya, I experience the same issue. But I see an update error on prisma, saying:
Do you also see an error from your ORM or something?
I also checked BA's code where they populate these fields (in
packages/stripe/src/hooks.ts
line 44):
There they reference the fields current_period_end
and current_period_start
, but when I retrieve the subscription myself I cannot find these fields in the subscription object.18 replies
BABetter Auth
•Created by Duki on 4/20/2025 in #bug-reports
change email does not update the customer's email in stripe
Got it! Thanks for the workaround
https://github.com/better-auth/better-auth/issues/2385
5 replies
BABetter Auth
•Created by Duki on 4/19/2025 in #help
Unknown argument `stripeCustomerId` when creating customer on signup
ok yea it was my fault. I got a warning from prisma to set an output path for the generated client
Warning: You did not specify an output path for your
generator in schema.prisma. This behavior is deprecated and will no longer be supported in Prisma 7.0.0.
, but then forgot to change the PrismaClient import statement from the old default path.13 replies
BABetter Auth
•Created by Duki on 4/19/2025 in #help
Unknown argument `stripeCustomerId` when creating customer on signup
Havent tried yet, but i think its on my end, because if i try to manually update the user, i dont even get the ahtocomplete from typescript for that field. Something must be wrong with my generator i think. Will take a look when I get to it and report back.
13 replies
BABetter Auth
•Created by Duki on 4/19/2025 in #help
Unknown argument `stripeCustomerId` when creating customer on signup
Perhaps I am still not understanding prisma and how to properly migrate the schema changes to the prisma client 🙈
13 replies
BABetter Auth
•Created by Duki on 4/19/2025 in #help
Unknown argument `stripeCustomerId` when creating customer on signup
I even reset the db and the problem still remains
13 replies
BABetter Auth
•Created by Duki on 4/19/2025 in #help
Unknown argument `stripeCustomerId` when creating customer on signup
I already migrated the new schema as well 🤔
13 replies
BABetter Auth
•Created by Duki on 4/19/2025 in #help
Unknown argument `stripeCustomerId` when creating customer on signup
13 replies
BABetter Auth
•Created by Duki on 4/19/2025 in #help
Unknown argument `stripeCustomerId` when creating customer on signup
I'm using BA and BA stripe plugin
v1.2.7
and prisma client v6.6.0
13 replies