Yes, it is legal. The Securities and Exchange Commission authorizes banks and lending companies to grant the loan. Also, the Civil Code (the Republic Act No. 386) is one of the laws protecting lenders and borrowers for this type of loan.