If a customer fails to repay the loan within the agreed upon period, the pawnbroker has the right to sell the item to recover the loan amount. The sale proceeds are used to settle the outstanding loan balance, and any excess amount is returned to the customer. It is essential for customers to understand the repayment terms and ensure timely repayment to avoid losing their valuable items.