I paid 100 Hong Kong dollars for some sort of visa just over the border from Macao. According to the stamp, it was good only for three days in Zhuhai, but there was no problem in going all the way to Guangzhou (Canton) by bus. Chinese authorities got on the bus several times and kicked out Chinese people without proper papers, but they never bothered our group (Brazil, Australia, USA passports).