Someone asked me to pay off his debt on his behalf as a loan, without any compensation. When I went to the creditor, he told me that if I paid the full amount at once, rather than in installments, he would give me a certain discount. Is this permissible? And if he applies the discount, to whom does the deducted amount belong?