Carlos Tevez is expected to complete his protracted move to Manchester United this weekend.
Widespread reports claim West Ham and Carlos Tevez's advisers have finally reached an agreement over the Argentine's registration.
All parties have been holding talks this week in a bid to thrash out a deal with the threat of High Court action hanging over the transfer.
An agreement which will see the Hammers paid around £2million in compensation is reported to have been agreed on Thursday night.
It means the settlement of the £30million lawsuit brought against West Ham by Tevez's agent Kia Joorabchian has also been ratified.
The Premier League and Football Association are expected to sign off the deal on Friday allowing Tevez to put the finishing touches to his move to Old Trafford.
ContractA two-year loan deal is thought to be on the table that would cost United around £5million a year with United then having the option to sign him permanently on a three-year contract.
The agreement with West Ham brings an end to a long-running and painful saga for the club that began when former chairman Terry Brown signed Tevez and Mascherano under banned third-party agreements last summer.
The club were fined £5.5million as a result by a disciplinary commission in April and that led to an unsuccessful legal challenge by Sheffield United, who claimed they should have been docked points.