vercel / nextjs-subscription-payments

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

Stripe test mode purchase in preview deployment is not working #138

Open jeo1kim opened 1 year ago

jeo1kim commented 1 year ago

I am trying to test purchasing in preview deployment and stripe test mode.

In production mode, the stripe cart page correctly loads, but in preview I am getting 500 back?

Capture

jeo1kim commented 1 year ago

I found an error in the Stripe dashboard saying that the customer is missing. I tried creating a customer in the preview build but the customer is not being created in the preview db. Is this a known bug?

jeo1kim commented 1 year ago

I got around by created a customer in the Stripe's dashboard in test mode and taking the customer id and replacing it with the customer id in the supabase. At least I can test the subscription for now.

But user creation in preview mode is buggy. :]

mworks-proj commented 1 year ago

I got around by created a customer in the Stripe's dashboard in test mode and taking the customer id and replacing it with the customer id in the supabase. At least I can test the subscription for now.

But user creation in preview mode is buggy. :]

did you run into errors publishing products to environment?