Stojkovic will stay with Getafe on loan until the end of the season and the Spanish side have an option to buy the Sporting Lisbon keeper after that.
The Serbian will start training with Getafe on Monday.
Stojkovic could make his debut for Getafe against Real Betis.