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

Subscriptions Not Populating :( #126

Closed Nick-Achee closed 1 year ago

Nick-Achee commented 2 years ago

Am I just dumb or is there a step I am missing - I have followed the instructions to a tee but cannot seem to get products to show up in Supabase therefore the site as well. The only thing I just do is login users.

Someone, please help!

Screen Shot 2022-07-31 at 12 24 47 AM

Screen Shot 2022-07-31 at 12 27 37 AM

Screen Shot 2022-07-31 at 12 31 26 AM Screen Shot 2022-07-31 at 12 31 40 AM

audrow commented 2 years ago

I had trouble with this, too. Make sure that your Stripe webhook is connected and that your server is running. Once both of those are setup, you need to have some sort of events on Stripe to trigger the webhook. For example, you could run Stripe fixture command to create the products on Stripe. Once the products are created, you should see that they've been created in your server's console.

Hopefully this helps, good luck!

Nick-Achee commented 2 years ago

@audrow Thanks Audrow - Still stumbling my way through it - its not working yet but I'm feeling confident I will get there soon

drakata commented 2 years ago

@audrow Thanks Audrow - Still stumbling my way through it - its not working yet but I'm feeling confident I will get there soon

Did you find a solution to this? I have the same problem. I can't get the products to populate.

Nick-Achee commented 2 years ago

@drakata no still not able to figure it out :(

ACPK commented 2 years ago

@Nick-Achee I'm happy to pair program for 15 minutes if you need some help.

Nick-Achee commented 2 years ago

@ACPK I will take you up on this ASAP when are you available?

kiran-brahma commented 2 years ago

Any solution identified as I am facing the same issue

josh-may commented 1 year ago

Also interested in this :)

kiran-brahma commented 1 year ago

@Nick-Achee Send me an email (ak@callred.com)

Got it Working. Had to delete the Stripe API keys and redo the process. Thanks

michaeldrob commented 1 year ago

@Nick-Achee Send me an email (ak@callred.com)

Got it Working. Had to delete the Stripe API keys and redo the process. Thanks

that seems like an ok solution while developing, but what happens in production when I want to add/update pricing plans? Having this issue as well.

rossjburmeister commented 1 year ago

@Nick-Achee Send me an email (ak@callred.com)

Got it Working. Had to delete the Stripe API keys and redo the process. Thanks

@kiran-brahma You deleted them in Vercel and re-added them?

ordinz commented 1 year ago

To get past this level I ended up at Supabase's SQL Editor, clicking on the SQL Snippet Stripe Subscription and running that. After that, resubmit a webhook and it successfully populated the data.

Screenshot 2022-12-12 at 3 10 03 PM

elenacalvillo commented 1 year ago

same problem here :( anyone found a solution to this?

leerob commented 1 year ago

We're looking into this with the Supabase team!

cc @thorwebdev

leerob commented 1 year ago

Hey folks, we just ran through the README again and things worked successfully.

If you have suggestions for how to improve clarity in the README, please let us know 🙏

michaelfavia commented 1 year ago

@leerob We just had to run the same SQL Snippet to add the tables. At what point in the README does it say to do this or at what point in the installation process would it happen automatically? This is a tough one for people to figure out and work around without some pointers in the README.

It could be that we didn't hook up the right parts of the Supabase integration and local stripe webhooks in the right order our first time through but subsequent attempts to do it failed until we ran it by hand. To be clear we have it functioning nowe but it was tough to discover what was wrong and how to fix it because the introspection of the products seems slightly magical from the outside so far.

TommyDong1998 commented 1 year ago

I just got this same error, however running the sql snippet does not fix this. Is this a bug?

caseyocampo commented 8 months ago

Hi, I'm getting the same error. Stripe subscriptions are not populating on the front end. I've tried re-adding my public and secret keys but that has not helped.

Update: I needed to configure my webhook key in the Create a webhook step. Also, I made sure to use the right keys (test or live). Everything is populating now 👍

kyle-whitetreelabs commented 7 months ago

FWIW I had this issue and the problem was I created the products/subscriptions before the webhook was set up so the events never got sent over to the database because they were triggered before the connection existed. Ideally the documentation could warn us to not create any products/subscriptions until it's complete.