In China many restaurants have Q codes printed on the tables. When you have finished your meal all you need to do is scan your table's Q code with Alipay/Tenpay and pay in the app. I find that less intrusive than having the waitress come to your table with a machine.