DEV Community

Discussion on: The perfect architecture flow for your next Node.js project

Collapse
 
chrischenyc profile image
Chris Chen

+1 for Rule #8: Use another layer for third-party services calls

I worked at 3 startups all involved with online payment, all switched from one payment processor (Stripe, Adyen, and whatnot) to another for a better rate or more features, mostly for a better rate. After going through the painful refactoring for the first 2, I realised I should've written a wrapper around whatever payment processor npm/API I would use

Collapse
 
dandv profile image
Dan Dascalescu

Yes but you have to create a unified API. Thankfully this should be easier for payment processors than for writing a unified DB access layer that would allow switching from MySQL to MongoDB.