Paying off credit cards to qualify?

If you have to qualify for a mortgage by paying off credit cards, make sure you follow the process this way