In Congo, Brazzaville, I was expected to have a transit visa, but did not. They allowed me to buy one there — $40, if I’m not mistaken. However, they then connected me with one of their “baggage handlers” who shook me down for more money. My advice is to get the visa ahead of time and save yourself the hassle.
More Visa requirement tips