Stripe subscription management

Hi, I tried to setup stripe, it seems to work, but when I try to upgrade a user to a subscription, next.js says this: POST /api/auth/subscription/upgrade 404 in 76ms do I have to write the route myself or is it automatic? I really don't know
1 Reply
DONYYB
DONYYB14h ago
I am facing the same issue as you
plugins: [
stripe({
stripeClient,
stripeWebhookSecret: keys().STRIPE_WEBHOOK_SECRET || "",
createCustomerOnSignUp: true,
subscription: {
enabled: true,
plans: plans
}
}),
plugins: [
stripe({
stripeClient,
stripeWebhookSecret: keys().STRIPE_WEBHOOK_SECRET || "",
createCustomerOnSignUp: true,
subscription: {
enabled: true,
plans: plans
}
}),
got past the 404 but now I am getting a 500, I had to enable subscriptions and set plans on the server side, I only had on the client side

Did you find this page helpful?