Payment Options for Tourists
Shanghai's metro is, in practice, the easiest major Chinese transit system for a foreign tourist to use cashlessly: QR code payment through Alipay or WeChat Pay works at every station, and Alipay's 'Tour Pass' feature lets you load a foreign credit card into a usable in-app wallet without needing a Chinese bank account — set this up before you land if possible, since it removes the biggest friction point in getting around the whole city, not just the metro.
Shanghai has also rolled out contactless bank card payment on parts of the network, similar to London or Hong Kong's systems, letting some foreign-issued contactless cards tap directly at the turnstile without any app setup at all — availability varies by line and station, so don't rely on it exclusively, but it's worth trying if your card supports it. The physical alternative is a Shanghai Public Transportation Card, sold at station counters, which also works on buses and some taxis.