Demba Ba has finally completed his move from Hoffenheim to West Ham, the German club have confirmed.
The Senegal striker, who announced the transfer on his official website earlier this week, has signed a deal with the Hammers until June 2014.
"We are happy we can close the Demba Ba chapter. After much to-ing and fro-ing this solution is the best for all concerned," Hoffenheim manager Ernst Tanner told their official website.
Ba had earlier this month appeared set for a move to Stoke only for the deal to fall through because of a failed medical.
Ba has scored six goals in 17 games for Hoffenheim this season.