#nsad__
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Hello good morning
Why would you need to have those in your database? You can access them via Stripe API.
You can access Stripe API when you need it, no need to make it overly complicated right away.
so i will use to display products and prices
But in this case would I have to use a cache to avoid multiple requests when reloading the page?
I wouldn't optimize anything unless you run into an issue with this.
If you have a need to keep your own record of Products in your database, you can do it, but it makes no sense to replicate Stripe data models.
okay, so just customer and subscription to control?
What do you mean?
If you're asking whether you need to replicate Customer and Subscription models in your own database, the answer is again "no", as you have access to it via Stripe API too.
understand, thanks so much
Happy to help!
good day!