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

Stripe test mode purchase in preview deployment is not working

Open jeo1kim opened this issue 3 years ago • 3 comments

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 avatar Nov 02 '22 04:11 jeo1kim

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 avatar Nov 02 '22 04:11 jeo1kim

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. :]

jeo1kim avatar Nov 02 '22 04:11 jeo1kim

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?

mworks-proj avatar Feb 28 '23 19:02 mworks-proj