How can I know that my cash down won’t be used on add on’s rather than the car?

I hade a recent repo and wanted to purchase a car again and have money down of course. I read in some of the posts that some dealers purchase warranties with the cash down, so then it can’t be reimbursed since it was “purchased” flat out. How can I know in the paper work it’s being applied to the car it’s self? I hade a finance guy tell me the bank won’t approve the loan if I didn’t get warranty on my car. I live in Texas and is this illegal? And when it says “amount financed” should the interest be included in that? Or if that a way for them to add things to make it look like it’s just “interest” being collected by the lender.