Can foreigners use Alipay for the metro in China?
Yes. Open the ride code in Alipay, choose your city and activate it once. International accounts may need to verify a passport first.
ChinaEase Buddy
Maintained by Lin · Rules checked against official metro announcements, October 23, 2026
You have two easy options:
Tap your bank card at the gate. Beijing, Shanghai, Guangzhou and Shenzhen metros accept contactless Visa, Mastercard, American Express and JCB cards. No app, no ticket. In Shenzhen, use a gate showing your card's logo.
Use Alipay's ride code. In Alipay, open Transport (出行) or search for "ride code" (乘车码), choose your city, activate it once, then scan the code at the gate. It's the ride code, not the payment QR you show in shops.
Jump to: Tap your card · Alipay ride code · At the gate · Other options
Last reviewed: October 23, 2026
In China's biggest metro systems you no longer need an app. Hold a contactless card over the card reader on the gate, and tap the same card again when you exit.
| City | Cards | Where |
|---|---|---|
| Beijing | Visa, Mastercard, American Express, JCB, UnionPay | All 29 lines and 523 stations, including both airport express lines and Suburban Line S2 |
| Shanghai | Visa, Mastercard, American Express, JCB, UnionPay | Metro gates ("Tap to Ride"). Your card needs enough balance and must allow small contactless payments without a PIN |
| Guangzhou | Overseas Visa, Mastercard, American Express, JCB | All stations, since October 12, 2025 |
| Shenzhen | Visa, Mastercard, American Express, JCB, including cards in mobile wallets | All 17 lines and 432 stations, but only at gates showing the card logos (a trial since June 30, 2026; all gates are due by the end of 2026) |
Other cities: check for card logos on the gates before you rely on it. Your bank may also charge a foreign transaction fee on each ride, so check with your bank before you travel.
Open Alipay and go to Transport (出行), or search for "ride code" (乘车码).
Choose the city you're in.
Activate the ride code: agree to the service terms and choose how to pay. If you have an international Alipay account, it may ask you to verify your passport first. Follow its prompts.
At the gate, hold the ride code over the scanner. Scan it again when you exit.
The fare is charged to your linked payment method after you exit.
Ride code vs payment code: shops scan your payment code (付款码); metro gates need the ride code (乘车码). They are different QR codes, and the gate reads the ride code.
Set this up before you fly, while you have time to sort out card linking: Alipay for foreigners.
Exit the same way you entered: if you scanned in with the ride code, scan out with it; if you tapped in with a card, tap out with the same card. The fare is calculated when you exit.
Have the code open before you reach the gate, so you're not holding up the line.
If the gate won't read your code or card, don't keep trying. Use the staffed gate or the service center.
Single-journey tickets: ticket machines have an English option. In Shanghai, station service centers also sell tickets by card, including overseas cards.
Shanghai passes: a one-day pass costs 18 yuan and a three-day pass 45 yuan, for unlimited rides.
WeChat: WeChat also has ride codes, and Shanghai's metro accepts both Alipay and WeChat.
More on tickets, gates and transfers: China metro guide. To find the right station entrance and exit, see how to use Amap in English.
Yes. Open the ride code in Alipay, choose your city and activate it once. International accounts may need to verify a passport first.
Yes in Beijing, Shanghai, Guangzhou and Shenzhen, by tapping a contactless card at the gate. In Shenzhen, use gates showing the card logo. In other cities, check the gates first.
Shenzhen Metro says cards in mobile wallets work at its card-enabled gates. Elsewhere, the physical card is the safer bet.
No. Shops scan your payment code; metro gates need the ride code.
In Alipay you choose the city first, so check it's set to the city you're in before you reach the gate.
Don't keep scanning. Go to the staffed gate or the service center, or buy a single-journey ticket.
I'm Lin — Chinese, lived abroad for years, and in China right now. Send me your dates or draft route and I'll reply within 48 hours with the 3 biggest route, timing or booking risks. Free. Human customized itinerary planning is a separate paid service.
I only recommend guides; I don't take payment for guide or driver services.
lin@chinaeasebuddy.com
Include your travel dates, cities and main questions. Please leave out passport numbers, payment details and other sensitive information.
ChinaEase Buddy is a digital travel toolkit. It is not an official travel authority, visa service, immigration service, medical service, legal service, financial service, hotel booking service, or flight booking service. Always confirm important travel, payment, health, and entry information with official sources or service providers.