It's worth knowing the risk before you do: buying gil from outside sellers violates Final Fantasy XIV's terms of service, and accounts caught doing it are suspended or banned.
Seller sites also have a poor record on payment security, and discounted codes advertised on them are a common source of stolen goods. Earning gil through quests, crafting and market board trading keeps your account intact.