West Ham bounced back from their heavy defeat to Mainz at the weekend with a 3-1 pre-season friendly victory over Hamburg on Tuesday night in Flensburg.
The Hammers were beaten 4-1 by Mainz in the opening match of their tour to Germany as they suffered their first loss of the summer.
But the Premier League side enjoyed success against another Bundesliga outfit in the shape of Hamburg, with Matt Jarvis playing a big part in the win.
All four goals were scored in the first half with Alou Diarra and James Tomkins both heading in Jarvis corners to put West Ham 2-0 up inside 30 minutes.
Hamburg halved the deficit through Heiko Westermann in the 43rd minute but Sam Allardyce's men added a third soon after through a Ravel Morrison penalty after Jarvis had been brought down.