BERLIN (Reuters) -- English Premier League club West Ham United have signed Senegalese striker Demba Ba from Germany's Hoffenheim on a contract until 2014, the Bundesliga club said on Friday.

Ba, who scored 40 goals in 106 appearances for Hoffenheim since 2007, had been pressing for a transfer and was removed from the squad after refusing to travel to the winter training camp.

The 25-year-old Senegal international was close to signing for Stoke City after agreeing a deal but he failed a medical at the English club.

"We are to happy to be closing the Ba chapter now," said Hoffenheim manager Ernst Tanner on the club website (www.achtzehn99.de). "After a lot of effort this is the best solution for all."

SI Apps
We've Got Apps Too
Get expert analysis, unrivaled access, and the award-winning storytelling only SI can provide - from Peter King, Tom Verducci, Lee Jenkins, Seth Davis, and more - delivered straight to you, along with up-to-the-minute news and live scores.