#NormanLove-subscriptions

1 messages · Page 1 of 1 (latest)

dry obsidian
grizzled crest
#

Here is my payments code which creates customer, plan, subscription

#

Im thinking under where I create the plan and adding my own name, amount, currency interval etc. I just add a plan id or product id from the dashboard, and hard code it in and always use it. what do you think

#

or is it fine to just let it create an infinite amount of products, as it is now

dry obsidian
#

it's definitely a better idea to create a Product/Price from the Dashboard and always use it

grizzled crest
#

I can pull up a product and grab it's product idea and use it and instead of name and price and all that just include productid right, and it will know the rest?

dry obsidian
#

Generally, you would use the Price id when creating a subscription

grizzled crest
#

and that will pull up everything else for the product/plan, name etc?

dry obsidian
#

yep

grizzled crest
#

closest thig im seeing on dashboard to a price id is the plan_xxxxxx under price

dry obsidian
#

ah yeah, that works too

#

Plans are the older version of what we now call Prices

grizzled crest
#

do I need to upgrade my api version or something?

#

I thought I had the latest

dry obsidian
#

no it's not necessary, you can still use the plan

grizzled crest
#

ok thank you so much 🙏