The 24-year-old has a buyout clause of 200 million euros ($222.4 million) for the first year of his contract, 222 million euros for the second, and 250 million euros for the remaining three years.
Neymar, who joined Barcelona from Brazilian club Santos in 2013, scored 31 goals in all competitions last season to help Barcelona win the La Liga title.
Euro 2016: How minnows are causing upsets...
Talented players, dull matches... 'anything is possible' for Portugal
Gurpreet scripts Indian football history!
Euro 2016: Captain Ronaldo produces another disappointing show
Drama in store as Ibrahimovic writes final chapter