Hi, I am an intern and I am charged to put a new feature about buying credits with credit card, on a project.
We have already an api related to the bank in our country so we call it for paying.
My question is that : where I am supposed to put the function that handle the system of payment, in the model related to it or in the controller related to it ?
At Uni, our teacher suggested to put all logics in models (I am tempted to follow that because I think it is the good way to do it)
But if anyone have some tips, that can help me to improve my feature, I'm open to advices. I am also open to critics if I am following the wrong way