Mastercard can be linked to WeChat Wallet in China. You can see if you can use WeChat to pay for train tickets (Alipay is the standard one they use, not sure about WeChat).
Also, where are you going that the train ticket will cost thousands? Or do you mean multiple tickets?