Stocker has played international football at various age levels, including Under-19s. He made his debut for Switzerland in Ottmar Hitzfeld's first match as manager, on 20 August 2008 in a 4–1 win over Cyprus at Stade de Genève. He also scored the opening goal of the match.
Scores and results list. Switzerland's goal tally first.