Just figured out why I couldn't buy gems. Apparently I had turned off the Steam overlay for Guild Wars 2 specifically. Once I turned it on, no more problems. 😀
I am having the same problem but Steam overlay is enabled. The only difference I have is that my account still has a few days to go before I can buy or sell on the trading post. Could that be whats causing the problem?