No it does not matter who paid, the Taxpayer that claims the student claims ALL education payments for a dependent student.
Even payments made by a family member or friend would be claimed by you.
Loans are the same as cash.
The ONLY expenses not reported are those that were paid with TAX-FREE funds, such as a tax-free scholarship.