There are two types of typhoid vaccines, an oral version and a "shot".
There are pros and cons to each, but the biggest is that one is a shot (!), but is single dose, whereas the oral vaccine is a capsule taken every other day for four doses (takes a week). The oral vaccine also lasts longer (5 yrs) than the
shot (2-3 yrs).
Oh, and yes it can be a little bit painful, but not bad!