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

Display Metadata/Feature list in the frontend #131

Closed onemarshall closed 1 year ago

onemarshall commented 1 year ago

Hi,

How do you display the metadata for each product in the front end? I want to display a list of features for each subscription product. And lastly, can Stripes 'Feature list' be used with this template?

Thanks

leerob commented 1 year ago

Hey there! You should be able to grab this information from Stripe (the template here doesn't have this added, but it should be possible with user code). Hope this helps!

joshdumoulin commented 1 year ago

Hi,

How do you display the metadata for each product in the front end? I want to display a list of features for each subscription product. And lastly, can Stripes 'Feature list' be used with this template?

Thanks

I'm actually trying to do the same. Were you able to figure out how to do it?

onemarshall commented 1 year ago

No, sorry I was not able to figure it out.

aamorozov commented 9 months ago

Hi there, if someone stumbles upon this issue looking to add Stripe product features to this starter, here are the steps I took:

  1. Create features column for products table, you can do it either in Supabase ui or Postgres schema file (you'll need to sync them later so I'd suggest doing it in schema right away);
  2. Update product fixtures with: "features": [ { "name": "Unlimited customers" }, ...your features ];
  3. Update supabase admin utility to add Stripe product features to Supabase product table features column;
  4. Seed your fixtures into stripe and voila - you get a fancy features list.