The regulations require full repayment or a satisfactory arrangement to repay.
I have not encountered a case where anything less than full repayment was accepted as satisfactory and I have never encountered a case where repayment was made and a visa was refused - perhaps others have.