Assuming they weren't part of organizations that were later labelled a criminal organization (though I am aware that former members of the Waffen SS petitioned the West German government to honour their pension obligations).
I can only speak to West Germany, as I am not aware of any specific pensions paid to Wehrmacht personnel in the East. I suspect this wasn't as much of an issue there as many former soldiers enlisted with the armed forces in the East.
First, it's important to note that, as far as I am aware, the Wehrmacht itself only had an official policy of paying pensions to disabled veterans and 'career' soldiers (i.e. officers). This was changed by the Western occupying powers in the early 1950s thanks to agitation by veterans organizations. This was helped by the threat of the Eastern Bloc felt by the west in Germany, and pensions were restored to non-SS personnel around the same time as West Germany itself began rearming. However, these pensions would have been relatively modest if anything at all, and most of the men of early 1950s Germany who were former soldiers but found themselves destitute would have re-enlisted in the new Bundswehr.