A loan to the business is recorded as a Liability account. This is created in Settibgs / Charts of Accounts
The money received is recorded using a Receipt transaction
Repayments are recorded using a Payment transaction
Interest charged would be posted to an expense account