dguglielmi-git / innovandoliving

InnovandoLiving - NextJS Ecommerce - Official Website
2 stars 0 forks source link

Refactor Mercadopago Backend #8

Open dguglielmi-git opened 1 year ago

dguglielmi-git commented 1 year ago

Mercadopago's backend is highly coupled.

Separate the code for the following behaviors:

Verify Token Calls to Owner Class (searchOwner, validateOwner, etc…) Calls to Order Class (searchOrder, deleteOrder, etc..) To apply solid patterns, we need to have these functions with a single responsibility but there are some functions that in the same body are doing more than one thing.