I would use the box the pistol came in if you have it. If not, Amazon has a hard sided plastic pistol case for $8:
Find/buy a box that fits the case, fill the empty space with peanuts or wadded up paper - you are good to go.
You might want to label the case with your name and address so you get it back.