#bilal_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1245008901238292561
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! happy to help, can you clarify what specific question you have at a technical level?
The question is more of a design level, rather than technical.
makes sense, how can I help?
Let's say we have a creator in our app. The creator sets his/her subscription price.
Now, the user can subscribe to this creator (and many other). If a creator changes price, then it must also be applied on active customer subscriptions.
Which Stripe APIs fit into this flow?
you'd call https://docs.stripe.com/billing/subscriptions/upgrade-downgrade for each existing Subscription object to change it from its existing price_xxx to the new one for the new amount
Will their be an underlying product for each creator?
This does not seem to be very scalable. Let's say if 100K users subscribe to creator, doing this for each user does not seem optimal.
there could be or you could use one Product with n Prices , it depends on your exact setup and requirements
yep but that's just how it works today, you'd write a script to do this.
There will be some alternative approach. There is no chance anyone will be doing this using script. A lot can go wrong
a bulk migration product for existing subscription is definitely something we'd like to build but it doesn't exist today, and lots of people do migration this way, you can test and develop the code in test mode and have high confidence. If I had a better answer I'd give it to you.
Stripe developers will have chosen to change the original reference, I mean ๐
not sure what that means, I'm sorry