Is mirroring Stripe with your own local database is a good thing?
Mirroring using both API calls (create a new plan, coupon, subscription, etc.) and webhooks (new invoice or charge generated, payment failed.) so you can store all data (literally have similar tables with columns matching the stripe objects) locally and work with it faster.
If not, what data do you save locally and what do you request?
Thank you.
Typically, saving the same data in two different places is not a good idea. By avoiding data duplication, you save a lot of time and prevent possible issues like data being out of sync.
That being said,
In my apps I typically store Stripe's customer ID and which plan a user is subscribed to. Obviously, I also have all plans in my code since they determine what a user can do within an app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With