nextjs-subscription-payments icon indicating copy to clipboard operation
nextjs-subscription-payments copied to clipboard

await checkoutWithStripe(price, currentPath) not working on localhost

Open maxmdev opened this issue 1 year ago • 0 comments

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

maxmdev avatar Jun 09 '24 11:06 maxmdev