He failed to make England's squad for the World Cup and won his last cap in 2016.
"That's a big reason why I stayed in the Premier League. I've always said before, I love playing for my country, I'm proud to do it and it's been a while since I've done it," Wilshere was quoted as saying by Sky Sports.
Wilshere could make his West Ham debut when they face Preston North End in the third of their seven pre-season fixtures on Saturday.
(Reporting by Aditi Prakash in Bengaluru; Editing by Peter Rutherford)
