Visa for China in Taiwan?

I am American.
In San Francisco, I gave usd200 to an agency near the PRC consulate & next day, got a 10 year visa where I can stay for 2 months at a time