I want to create a subscription with free trial with stripe

Do I need to use the better-auth stripe plugin for this or the stripe sdk? It seems that when I do: const subscription = await auth.api.upgradeSubscription({ body: { plan: "Starter Monthly", successUrl: process.env.NEXT_PUBLIC_URL, cancelUrl: process.env.NEXT_PUBLIC_URL, }, headers: ctx.headers, }); it gives me an error.
2 Replies
nikatune
nikatune2mo ago
so whats error? we guessing it ? maybe
reddevil777
reddevil777OP2mo ago
There is no error, that’s the thing, it is just empty

Did you find this page helpful?