Payet was in France this weekend to push through a move from West Ham before the transfer window closes on Tuesday.
And the two clubs have come to an agreement for Payet to re-join Marseille, just 18 months after heading in the opposite direction.
Dimitri Payet has moved back to Marseille
And according to Sky Sports, Payet is undergoing a medical at the Ligue 1 club ahead of his move.
France Football are reporting that West Ham have agreed a fee of £25m.
Breaking | Dimitri Payet will arrive in Marseille this afternoon to undergo a medical after the two clubs agreed a £25m deal.
— Get French Football (@GFFN) January 29, 2017
Every Premier League team's most likely signing before deadline day
Sat, January 28, 2017
Click through the gallery to reveal every Premier League team's most likely signing before the January transfer deadline
1 of 21
Click to reveal every Premier League team's most likely signing in January
West Ham previously rejected Marseille's bid of £23m earlier this month and were understood to value the midfielder closer to £30m.
Payet has not played for West Ham since the 5-0 defeat to Manchester City after Slaven Bilic revealed the France international wanted to quit.