The integration of smart grid and Internet of Things (IoT) has been facilitated with the proliferation of electric vehicles (EVs). However, due to EVs’ random mobility and different interests of energy demand, there exists a significant challenge to optimally schedule energy supply in IoT. In this paper, we propose a secure game theoretic scheme for charging EVs supplied by mobile charging stations (MCSs) in IoT, considering the dynamic renewable energy source. Firstly, the charging system composed of MCSs is developed to implement the charging service. Secondly, when the secure charging scheme of EV users is designed, the utility function of each entity in the charging system is formulated to express the trading relationship between EV users and MCSs. Moreover, with consideration of the competition and cooperation, we propose a Stackelberg game framework with sub-noncooperative optimization. Thirdly, the existence and uniqueness of both Stackelberg equilibrium (SE) and Nash equilibrium (NE) are theoretically analyzed and proved. Through the presented distributed energy scheduling algorithm, we can achieve the optimal solution. Finally, numerical results demonstrate the effectiveness and efficiency of our proposal through comparison with other existing schemes.