ChinaEase Buddy

How to Pay for the Metro in China: Alipay Ride Code or Tap Your Card

Maintained by Lin · Rules checked against official metro announcements, October 23, 2026

Quick answer

You have two easy options:

  1. 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.

  2. 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

Option 1: tap your bank card at the gate

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.

CityCardsWhere
BeijingVisa, Mastercard, American Express, JCB, UnionPayAll 29 lines and 523 stations, including both airport express lines and Suburban Line S2
ShanghaiVisa, Mastercard, American Express, JCB, UnionPayMetro gates ("Tap to Ride"). Your card needs enough balance and must allow small contactless payments without a PIN
GuangzhouOverseas Visa, Mastercard, American Express, JCBAll stations, since October 12, 2025
ShenzhenVisa, Mastercard, American Express, JCB, including cards in mobile walletsAll 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.

Option 2: Alipay ride code, step by step

  1. Open Alipay and go to Transport (出行), or search for "ride code" (乘车码).

  2. Choose the city you're in.

  3. 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.

  4. At the gate, hold the ride code over the scanner. Scan it again when you exit.

  5. 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.

At the gate

  • 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.

Other options: tickets, passes and WeChat

  • 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.

In Shenzhen, TenPayGo also has a transit card.

FAQ

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.

Can I use my Visa or Mastercard on the metro in China?

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.

Can I use Apple Pay or Google Pay?

Shenzhen Metro says cards in mobile wallets work at its card-enabled gates. Elsewhere, the physical card is the safer bet.

Is the Alipay ride code the same as the payment QR?

No. Shops scan your payment code; metro gates need the ride code.

Do I need a different code in each city?

In Alipay you choose the city first, so check it's set to the city you're in before you reach the gate.

What if the gate won't read my code or card?

Don't keep scanning. Go to the staffed gate or the service center, or buy a single-journey ticket.

Planning a China trip? Send me your dates or route.

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.

  • Itinerary review & fix — from $20
  • Custom China itinerary (Trip Plan) — $39
  • Licensed English-speaking guides — I can recommend some; you book and pay them directly

I only recommend guides; I don't take payment for guide or driver services.

Email Lin your route Ask about paid trip planning

lin@chinaeasebuddy.com

Include your travel dates, cities and main questions. Please leave out passport numbers, payment details and other sensitive information.

Official or primary sources to verify

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.