3rd party financing

I do loss mit in my area. People are asking me to find hard money for them. How do I get compensated for this work? Am I allowed to charge an up front fee to begin the work? And Am I allowed to charge a % of the lone amount? Or does this come under usury?
My state is PA.

THANKS