It is illegal to pay with any foreign currency in China. A taxi from the Shanghai Airport to the city centre (e.g., People's Square) the fare is about CNY 160-200 with travel time around 45-60 minutes. Note that rates increase by around 35% during night time, so expect to pay more between 23:00-05:00.