Yes — foreigners can ride the metro in China in 2026 by scanning the Alipay ride code (chéngchēmǎ) at the gate on entry and again on exit, from an Alipay wallet set up with a Visa or Mastercard. Activate it before you fly, and keep a single-journey ticket from the English-mode machine as backup.
The short version
TL;DR: Finish Alipay first (Visa or Mastercard, passport check). Open the Transport / chéngchēmǎ (ride code) tab, pick the city you are in, and scan the QR at the gate in and out. WeChat Pay is the backup after its 1 to 3 day real-name review. A paper single-journey ticket still works. Do not plan a whole Shanghai trip on tapping a foreign contactless card at the gate.
You need data for the QR. Get the eSIM working before the first station. Metro is not 12306: no passport at the gate, no real-name seat.
We take the metro more days than we take DiDi. For a visitor the friction is the first gate, not the map. English names are on the walls. The QR is what fails if you set it up on airport Wi-Fi.
Why should I use the metro instead of DiDi for every hop?
The metro is the grid: use it for most city hops and keep DiDi for the last mile and the suitcase run. Shanghai, Beijing, Shenzhen, Guangzhou, Chengdu, Hangzhou, and Suzhou all run late enough for a normal dinner. Using a car for every three-stop hop is how a first day disappears in traffic.
Security is the tax. Bags go through an X-ray at every station. Budget two extra minutes, more at rush hour. Large suitcases fit if they fit the belt. Knives and big lighters do not.
What is the easiest way for a foreigner to pay in 2026?
The easiest way for a foreigner to pay for the China metro in 2026 is the Alipay ride code: link a Visa or Mastercard to Alipay, open the ride code for the city you are in, and scan in and out. Shanghai government already tells visitors they can link a foreign Visa or Mastercard to Alipay without a Chinese number (Shanghai Government Alipay FAQ). The metro ride code sits on top of that wallet.
- Set up Alipay at home. Card visible. Passport cleared. A shop-QR test done.
- Open Alipay. Find Transport, Travel, or chéngchēmǎ (ride code). The label moves. Search chéngchēmǎ if the icon hid.
- Select the city you are standing in. Beijing and Shanghai are different codes. Do not ride Shanghai on a leftover Beijing code.
- Brightness up. Scan in. Scan out. The fare posts after the exit scan.
WeChat has chéngchēmǎ (ride code) too. It sometimes asks for a +86 number. If it does, stay on Alipay. Do not fight WeChat at the gate.
A physical city card (Shanghai transport card, Beijing Yikatong) is the no-phone backup. Deposit plus cash top-up at a counter. Useful if the phone dies. Not the first setup we would do on landing.
How do I scan the ride code at the gate?
Open the Alipay ride code before you join the line, hold the QR on the reader glass for a second to enter, and scan the same code again at the exit so the fare posts. A lock-screen or a dead brightness setting is how people bounce off the reader.
Distance fares need both scans. If you only scan in, you will get a penalty fare or a stuck code the next day.
Phone in a thick case, or a cracked screen protector, sometimes will not read. Take the case off once. If the gate stays red, step aside and try the next reader. Do not hold up the queue refreshing Alipay in the doorway.
Bags go through X-ray first, then the gate. Do the security line before you fumble for the QR.
Does a foreign contactless card tap work?
Treat a foreign contactless card tap as a reported bonus in Beijing, not a plan in Shanghai, and keep the Alipay ride code as your everyday way to pay.
Beijing's subway has been reported since 2024–2025 as accepting overseas contactless Visa, Mastercard, UnionPay, JCB, and Amex on the full network, tap in and tap out, no app. We have not got an official English page we trust enough to make that your only method. Carry Alipay anyway.
Shanghai: do not expect a foreign contactless tap on every line. Maglev and a subset of lines have been reported. The ride code is still the everyday method. Ticket machines have an English mode if the QR dies.
Other cities: assume QR or a single-journey ticket. Confirm nothing from a Beijing tap story.
What about buses, Suzhou, and a second city?
The same Alipay ride code usually covers city buses, but you must switch the city inside the app each time you change cities. Scan as you board. Suzhou is not Shanghai. The code you activated at PVG will not be the one you want at Suzhou Railway Station.
If you ride two cities in one day, open the Transport tab and check the city name before the first gate. That one glance saves a declined QR and a walk back to the machine. For Chongqing, see how to get around Chongqing for its metro, monorail, stairs and lifts.
What usually goes wrong?
An Alipay wallet that is not fully set up, the wrong city code, or no data will fail the gate. If the QR fails, buy a single-journey ticket at the machine and fix Alipay afterwards.
- Alipay is not actually ready. Card missing, or passport still in review. The ride code looks like a QR and then the gate says no.
- Wrong city code. Yesterday's Beijing code in Shanghai.
- No data. Screenshot of an old QR will not pay. Get the eSIM live first.
- WeChat Pay still under review. That 1 to 3 day clock does not care that you are at People's Square.
- Phone brightness or a dirty reader. Next gate, not a longer stare.
If the QR fails, buy a single-journey ticket at the machine (English button) or the counter. Cash or a tap on some machines. Then fix Alipay on a bench, not in the doorway.
Ready to travel, not just ride
Metro covers the grid. DiDi covers the last mile. 12306 covers the city-to-city trains. A 240-hour visa-free entry does not change any of those three. For the whole planning order, from entry to money to transport, start with our China travel guide 2026. When the whole trip needs booking, we plan private China tours 1:1 with a specialist. Your own China trip, planned, booked and backed, in two private ways. Independent: we plan the route and book hotels, trains and tickets; you travel on your own with the LocalKey app and 24/7 WhatsApp or WeChat support. There is no full-time guide: a guide for set times or sights, an airport pickup, or a car and driver are optional add-ons. Private Guided: the same planning, with an English-speaking private guide and a private car throughout.



