/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?4 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?