vercel / nextjs-subscription-payments

Clone, deploy, and fully customize a SaaS subscription application with Next.js.
https://subscription-payments.vercel.app/
MIT License
5.77k stars 1.18k forks source link

await checkoutWithStripe(price, currentPath) not working on localhost #348

Open maxmdev opened 3 weeks ago

maxmdev commented 3 weeks ago

Somehow, on localhost this function returns undefined.

On test / prod, returns valid ID and everything works.

When I console.log(subscriptionId) inside function checkoutWithStripe, I have value on server. But it is not passed to the client.

Screen Shot 2024-06-09 at 2 44 59 PM

Anything am I missing?

Screen Shot 2024-06-09 at 2 48 18 PM Screen Shot 2024-06-09 at 2 49 05 PM Screen Shot 2024-06-09 at 2 47 29 PM