NihaoEXPAT

Apps & Services · 28 October 2026

Train tickets in China through Alipay: how to buy from 12306 without a separate app

You can buy a train ticket in China right inside Alipay: the Air & Rail mini-program runs official 12306 sales. The article walks through the screens, from finding the icon to boarding and refunds.

Alipay home screen: a red arrow points to the Air & Rail icon for buying train tickets — photo by Alipay
Photo: Alipay · скриншот интерфейса

You can buy a train ticket in China without installing a separate app: Alipay (支付宝, Zhīfùbǎo) has an Air & Rail mini-program (火车票机票, huǒchēpiào jīpiào), and inside it runs the official 12306 sales service (铁路12306, Tiělù 12306). It works if Alipay is already set up: how to register and how to link a card. For the bigger picture see Alipay in China: in-app services. The features you see depend on the version, the city and the account type, so go by what is on screen.

Step 1. Find Air & Rail

On the Alipay home screen open the Air & Rail icon: in the example it is second from the left in the first row of services, after Ele.me (covered in the article on food delivery). The Frequent block below also shows a Railroad 12306 icon. If you do not see it, type "12306" or "火车票" into search.

Alipay home screen: a red arrow points to the Air & Rail icon, with Railroad 12306 visible in the Frequent block
Alipay home screen: a red arrow points to the Air & Rail icon, with Railroad 12306 visible in the Frequent block

Step 2. Choose 12306 and set the trip

The 火车票机票 mini-program ("train and flight tickets") opens, marked 官方小程序 ("official mini-program"). The 12306火车票 tab is for trains; the neighbouring 飞猪购票 buys through Fliggy (飞猪, Fēizhū). Enter the departure and arrival cities (Beijing 北京 and Shanghai 上海 in the example), the date, and tap 查询车票 ("Find tickets"). The 只看高铁/动车 box keeps only high-speed trains. The 学生票 ("student ticket") box is for the student discount; the app does not say whether it applies to foreigners, so leave it unticked unless you need it. Check the banner about discounts for passengers aged 60 and over (年满60周岁) against 12306 rules as well.

The 火车票机票 mini-program: Beijing to Shanghai fields, date, the 学生票 and 只看高铁/动车 boxes and the 查询车票 button
The 火车票机票 mini-program: Beijing to Shanghai fields, date, the 学生票 and 只看高铁/动车 boxes and the 查询车票 button

Step 3. Read the list of trains

The 直达 tab shows direct trains, 中转 shows routes with a change. The 高铁/动车 ("high-speed") and 普速 ("conventional") filters narrow the list. A city can have several stations: Beijing has 北京南 (Beijing South), 北京 and 北京丰台, and in the example trains arrive at 上海虹桥 (Shanghai Hongqiao), and G3 at 上海 (Shanghai station). Check which station the train leaves from and where it stops: that decides how you get to the platform.

A train card shows the number (G means high-speed), departure and arrival times, duration and a "from" price (起). Below are the classes: 二等座 (second class), 一等座 (first), 商务座 (business) and 无座 (no seat). 有 means "available", 无 means "none", and a number with 张 is how many tickets remain. Next to 候补 ("waiting list") you can file a request for a seat that is not available now: check the terms and deadline in the app. The bottom bar sorts the list: 耗时最短 (fastest), 出发最早 (earliest), 价格最高 (most expensive). Prices in the screenshots are an example for a trip on 10 November; your train will differ.

Beijing to Shanghai results for 10 November: 直达 and 中转 tabs, stations, trains G547, G1, G3, G565, classes and availability
Beijing to Shanghai results for 10 November: 直达 and 中转 tabs, stations, trains G547, G1, G3, G565, classes and availability

Step 4. Pick a train and tap Book

Tap a train and its classes open with prices. For G547 in the example that is 二等座 ¥553, 一等座 ¥929, 商务座 ¥1995, while seats without a number (无座) are sold out: the button reads 售完 ("sold out") instead of 预订 ("Book"). Next to the prices are marks such as 7折, 7.3折 and 7.2折 (a coefficient against the base fare); how it is applied is shown on the booking screen. To book, tap 预订.

The expanded G547: prices for 二等座, 一等座 and 商务座, 预订 buttons and 售完 on the no-seat row
The expanded G547: prices for 二等座, 一等座 and 商务座, 预订 buttons and 售完 on the no-seat row

Step 5. Sign in to 12306

The mini-program then asks you to sign in. The 一键授权登录12306 button signs you in with one tap through Alipay, and 12306账户/密码登录 uses the login and password of an existing 12306 account; there are also 用户注册 ("register") and 忘记密码 ("forgot password"). Foreigners buy tickets with a passport. A 12306 account has to be registered in the passport name and the passport verified: since 28 November 2023 this can be done online by uploading the passport page, or in person at a station ticket office. Until verification is passed, tickets are not sold. More in the article on high-speed trains. Whether the one-tap option works with your Alipay account depends on the version: if it does not, sign in with login and password.

The 欢迎登录 screen with the 一键授权登录12306 and 12306账户/密码登录 buttons
The 欢迎登录 screen with the 一键授权登录12306 and 12306账户/密码登录 buttons

Step 6. Passenger and payment

Next the app asks you to choose the passenger and pay. These screens did not make it into the article, so follow the app's prompts. The ticket is issued to a specific person from passport data, and payment goes through Alipay. According to media reports, 12306 sells and changes tickets from 5:00 to 1:00 the next day; on Tuesday evenings there may be a maintenance break, so check the hours in the app.

Boarding, refunds and changes

At the station you go through the gate with your passport: most stations have lanes where it is scanned or shown to staff. Arrive early, usually 20-30 minutes before departure (more at holidays and peaks): the boarding cut-off differs by station and is shown on the display boards and the train details. The mini-program has a 扫码乘车 ("board by QR") section: ask on site whether your station has such a lane, and keep your passport on you either way. Refunds are under 快捷退票 ("quick refund"). Return a ticket 8 days or more before departure and there is no fee; 48 hours to 8 days costs 5%, 24 to 48 hours 10%, under 24 hours 20%, with a 2-yuan minimum. A ticket can be changed (改签) in the app; the app itself shows the terms and fees. Luggage, child tickets and other rules are in the article on high-speed trains, and getting to the station and paying for the metro is covered in the overview of metro and buses.

Transfers in Alipay: Transfers in Alipay in China: how to send money to an account or a bank card.

Cinema and shows in Alipay: Cinema tickets in China through Alipay: how to buy in the Movies (淘票票) mini-program.

Read next