Here is a left pannier set up for a Ping 48 volt 20 Ah battery using two-part urethane foam to hold the battery stable in the pannier.
The Ping battery is a two part battery which I have put in a vertical configuration with a 'U' shaped plexiglass spine to hold the two pieces tightly together...