Heat pack use in styro shipping containers is pretty well worked out in the reptile hobby. There are some numerical guidelines, though a lot of it is still based on fine tuning of experience. We also use Phase 22/24 packs (my go-to method; they're really safe, and reusable), and simple thermal mass packs (a ziplok full of wetted polyacrylamide gelcrystals) to help moderate temps. Molded styro boxes resist heat loss/gain better than panel boxes or DIY insulation jobs. Smaller boxes have less surface area so resist heat loss/gain better than larger boxes.
It is true as noted above that the shipper should take into account all the expected temps along the way, and also consider the possibility of delays (which usually happens at the hub -- Indy or Memphis, for FedEx), and whether the package is being delivered to an address or held for pickup (temps in delivery truck are same as outside temps, + hotter on a sunny day).
A 40 hour heat pack in a 6" x 9" x 12" panel box (3/4" styro) will raise box temps 5-10F above ambient. We tend not to use heat packs in smaller boxes than this to avoid overheating.
Taping the pack to the underside of the top styro panel is the standard way. Note that the tape should be only on the edges of the pack; if the pack is covered by tape it won't get O2 and won't make heat. Loosely wrapping the pack in newspaper can help it breathe. And as mentioned if they get wet they stop working (happened to last marine shipment I received -- somewhat poorly packed).