What your former boss did isn’t cool and unprofessional. Good lesson to learn though. If you are subcontracting for anyone, go over all the terms, including payment, and have them signed in writing. Write down exactly what you will do and for what price. Common practice would be payment due within 30 days, potential late charges after. That way there are no questions and he is legally held to a payment.