/api/auth/subscription/upgrade 404 with stripe plugin
hey all- im doing this to create a checkout
but i'm getting an error saying the
/api/auth/subscription/upgrade
route does not exist?6 Replies
how should the stripe schema look, its only added
stripeCustomerId
in my user table?hey I had this problem, as well. I had to in the authClient set subscription to true, and do the same in the backend.
For reference
Frontend
Backend
Hope this helps!
thanks so much!!
il take a look- is that object subscription object inside the plugin??? i think thats where im going wrong
thanks this worked- the docs did not make this clear on where to put the
subscription
object.
i had it outside the pluginWhen i create the subscription and check the db row, it says status incomplete, and some of the fields are null like the stripeSusbscirptionId, the period start and end, the trial start and end
is it normal?
For me it was that I was using stripe 18.0.0 and I had to downgrade it to 17.7.0 to make it work. See answers to: https://discord.com/channels/1288403910284935179/1363191760066449588/1363779446829486310
The newest beta of better-auth seems to handle stripe 18's breaking changes, you can look it up in the releases channel.
i am on 17.7.0 already