So generally offering things on credit is like bait to catch customers, there is risk I agree. But profits from such schemes vastly exceed losses, to make them almost negligible.
Lets say you own a bakery, you sell cupcakes on credit. Say you sell $40K worth cupcakes an year to a company. There are chances that you may go under a loss of $2K if the company folds. Will you go for it, or do not offer any credit and lose $40K worth cupcake businesses to somebody else?
You just have to decide if you are ready to lose the opportunity if you don't want to take the risk. I know it sounds unfair, but unfortunately that is how things work in the real world.
If there was no risk associated with opportunities, then the number of people who be would competing for an opportunity will go up by a large number. Nature puts filters to keep the size of the game limited.