The bad news is, if you have issued an invoice for payment, you have extended credit. Otherwise you have to get payment on delivery or installation (or before if you can swing it).
Using invoicing with larger companies is not necessarily a bad thing, but you have to decide that you can handle the paperwork properly and take the time needed to ensure you get paid in a timely manner.
One issue is knowing something about the company you are doing business with: How long have they been in business? How well established are they? How well is their business doing? What is their track record on payment (if they have one)? I would be wary giving credit to brand new businesses, individuals engaged in fad businesses, anyone who seems too "wigglely".
Next is never extend credit to a business without having a credit application signed by an authorized agent of the company that says they are going to pay you, and if they run late they are going to pay a late fee, generally 1.5%ish. Nowadays I would have a section of the credit application have a place for them to give you their corporate credit card info to have on file to charge when the project is completed, then noone has to worry about invoices.
If you do invoice a company, consider offering 2% 10 / net 30 day terms. This means if the invoice is paid within 10 days they can take a 2% discount, otherwise they pay the full amount in the 30 days. For companies that look to save any penny possible, this speeds up payment, and isn't any worse than paying the credit card processing fee. Just make sure you invoice immediately.
Make sure any invoice you send has the late penalty spelled out on the invoice so there is no dispute if you have to apply it to a late payer. If you have a customer that runs late, send out the statement right away. If you do not get any response within a week, call. You have to be persistant with anyone who is late or this becomes a cycle as you have found out.
For repeat offenders you have to decide if you are willing to risk their future business in exchange for ensuring you get paid. Speak with their account payable person and let them know that with regret you will have to have them pay on delivery (less any upfront deposit you require) as they have consistantly violated the invoice terms and you won't continue to do business that way.
It is never easy, but you deserve to be paid for your work without first financing someone else's business.