If you are trying to make a purchase on Steam and you get a popup saying Purchase Failed... it's because the Steam Overlay is disabled. You can enable the Overlay by doing the following:

Steam > Settings > In-Game > Enable the Steam Overlay