Does seller own property 100% already with no mortgage of their own? Otherwise they can't sell it to you without repaying their own mortgage.
Lending money between friends is one thing, but a property is something that will normally take you 20-30 years to repay. How much deposit you are putting down and over how many years you expect to be able to repay? Are you sure you can enter into such a long term agreement like this?