visa is given upon arrival for PRC
US$10 for up to 7 days. US$25 for up to 30 days. I'm just back from Bali yesterday. But you might be asked to enter a small room for some special process (I dun noe why, and nobody had explained anything to me). Dun worry, just wait for a few minutes.