On my last trip I still had a physical Shanghai PTC so used that though had to get it re-activated at a service desk as it hasn't been used since 2018..
But had 24hr in Hangzhou and couldn't work out how to buy the virtual Metro card without a minimum 50 RMB deposit, so just purchased single...