1. Ask the developer to refund your money first, at least the amount of the bank loan.
2. Get a refund and then go to the bank to handle other warrants and cancel the loan.
3. Go to the real estate bureau to check out with the developer.
As for the money you said, it should be all the money you gave to the developer, including the loan.