#nsad__

1 messages · Page 1 of 1 (latest)

covert fulcrumBOT
proven tangle
#

Hi! Let me help you with this.

frosty spoke
#

Hello good morning

proven tangle
#

Why would you need to have those in your database? You can access them via Stripe API.

frosty spoke
#

so every request, acess api stripe is not a good ideia

#

or use cache right?

proven tangle
#

You can access Stripe API when you need it, no need to make it overly complicated right away.

frosty spoke
#

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?

proven tangle
#

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.

frosty spoke
#

okay, so just customer and subscription to control?

proven tangle
#

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.

covert fulcrumBOT
frosty spoke
proven tangle
#

Happy to help!

frosty spoke
#

good day!