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

Subscriptions Not Populating :(

Open Nick-Achee opened this issue 1 year ago • 9 comments

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

Nick-Achee avatar Jul 31 '22 07:07 Nick-Achee

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!

audrow avatar Aug 01 '22 18:08 audrow

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

Nick-Achee avatar Aug 03 '22 16:08 Nick-Achee

@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.

drakata avatar Aug 23 '22 01:08 drakata

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

Nick-Achee avatar Aug 26 '22 15:08 Nick-Achee

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

ACPK avatar Sep 12 '22 19:09 ACPK

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

Nick-Achee avatar Sep 12 '22 20:09 Nick-Achee

Any solution identified as I am facing the same issue

kiran-brahma avatar Sep 13 '22 08:09 kiran-brahma

Also interested in this :)

josh-may avatar Sep 22 '22 10:09 josh-may

@Nick-Achee Send me an email ([email protected])

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

kiran-brahma avatar Sep 22 '22 11:09 kiran-brahma

@Nick-Achee Send me an email ([email protected])

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.

michaeldrob avatar Nov 01 '22 18:11 michaeldrob

@Nick-Achee Send me an email ([email protected])

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?

rossjburmeister avatar Nov 29 '22 16:11 rossjburmeister

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

ordinz avatar Dec 12 '22 07:12 ordinz

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

elenacalvillo avatar Jan 15 '23 15:01 elenacalvillo

We're looking into this with the Supabase team!

cc @thorwebdev

leerob avatar Jan 15 '23 16:01 leerob

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 🙏

leerob avatar Jan 16 '23 14:01 leerob

@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.

michaelfavia avatar Apr 26 '23 20:04 michaelfavia

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

TommyDong1998 avatar Jul 09 '23 02:07 TommyDong1998

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 👍

caseyocampo avatar Jan 12 '24 23:01 caseyocampo

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.

kyle-whitetreelabs avatar Jan 21 '24 13:01 kyle-whitetreelabs