Look into this: Force majeure - Wikipedia
Otherwise, if they are stupid enough to tell you they aren't going to pay you in advance of you delivering then don't make the delivery! Hold the freight hostage until they deposit your pay into your account. At worst, they will never do business...