Thousands of online retailers are adding a small fee to orders to help merchants cover shipping losses and protect customers in case their package is lost or stolen.