Green’s Dictionary of Slang

hammer v.2

[SE hammer (away), to persist; compare put the hammer on under hammer n.1 ]

(US Und.) to solicit money for drinking.

Quarterly Journal of Studies on Alcohol XXXII 733: Hammer. To solicit money for drinks, to panhandle. Also put the handle on [HDAS].