West Ham have signed striker Demba Ba on a three-and-a-half year contract, according to Sky Sports News.
The Senegalese striker had looked to be moving to the Boleyn Ground on a loan deal but a permanent deal has now been agreed with his club, Hoffenheim.
Ba is a Senegal international and has two goals in nine appearances for them.
West Ham have struggled to score goals this season so they will be hoping Ba can help them avoid relegation for the second year running after last year's narrow escape.
Ba scored 40 goals in 103 appearances in the last three-and-a-half seasons.
Earlier this month, Ba refused to travel to Hoffenheim's training camp as he wanted to move to West Ham. However, Ba claimed that Hoffenheim has assured him that he could leave the club.
After the confusion, Ba failed at medical at Stoke City after the two clubs agreed a fee for the former Mouscron forward.