Publishers pay developers, not the other way around. Usually developers end up taking a tiny cut of the sales of a game (or in some cases a full-blown one-time payout). In return, the publisher takes the game to market and will oftentimes pony up the working capital for the developer to make the game to begin with.