Whenever you travel to a different country, it is important to be aware of several important factors so that you are not caught by surprise. Such surprises will run you into troubles you don't want. But if you keep these things in mind, it will make your time there a lot smoother. First, it is vital to know that Cash is preferred. Only the largest hotel chains will accept international credit cards and many accept Union Pay. Second, Make sure you have the Chinese currency with you as you travel. None other is accepted there.
Third, it is cheapest to get Chinese currency at ATMs that accept international cards. Please note that only the more tourist friendly areas will have such ATMs. Fourth, make sure to inform your bank and credit card companies that you are traveling overseas. Otherwise, your card may get blocked when it is used in other countries.