static int Pay(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); ChannelPlatform.PayInfo arg0 = (ChannelPlatform.PayInfo)ToLua.CheckObject <ChannelPlatform.PayInfo>(L, 1); ChannelMgr.Pay(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }