views.py in the main app contains a lot of duplicate code which can be refactored to a function which takes in arguments from the view, call the function, and store back the results in the model.
Example : make a shipWithDelhivery() function outside the view, which will be useful for DelhiverySF (COD and PrePaid) and Delhivery5KG (COD and PrePaid) implementations.
Make the function do all the external API calls and data fetching.
I'd like to work on this issue Piyush Bhaiya! It would be great if you can assign this issue to me. I'll try to raise a PR with the fix as soon as possible.
views.py in the main app contains a lot of duplicate code which can be refactored to a function which takes in arguments from the view, call the function, and store back the results in the model.
Example : make a shipWithDelhivery() function outside the view, which will be useful for DelhiverySF (COD and PrePaid) and Delhivery5KG (COD and PrePaid) implementations.
Make the function do all the external API calls and data fetching.