In an ideal world, a seller always gets paid before they ship their goods.
In an ideal world, a buyer always receive their order before they pay for their purchase.
Obviously, both the buyer and seller can't live in an ideal world. Their ideal worlds conflict. Most likely, neither party lives in an ideal world, so they need to work together to find the right payment term that will meet both their needs. This is particularly true in international trade.