I did get this to work on a pixel 5a with Android 12 (build SP1A.211105.003). Thanks @hfam and @dedmau-five for your work on this.
A couple notes on issues I ran into. I was only able to get it working using the Canary channel of Magisk. V23 did not work. When I install canary, the "Magiskhide" option is no longer in the settings. It looks like it's been replaced by the Zygisk feature. This means Riru and the safetynet-fix that depends on Riru don't work. I tried disabling Zygisk to install the linked modules, but that meant there was no option to add apps to the Zygisk deny list (which as far as I can tell works just like the old magiskhide list).
Fortunately, there is a Zygisk version of the universal fix. It took me more time than I'd like to admit to figure it all out, but in case it helps anyone else: older/stable/beta versions of Magisk installed and worked for SU, but the magiskhide option didn't work (it wouldn't enable).
Also, the first time I installed the Canary version, the modules screen was empty. It didn't show any modules. I don't know why, but that lead me down the path of trying different versions. Eventually I tried re-flashing the stock boot image, then the magisk-canary modified version again. Then I installed the Zygisk version of the Universal fix from the github. Enabled Zygisk, check that google play store and google protect service are on the deny list. Cleared data from Google Play Services. Google Pay now works.
A couple notes on issues I ran into. I was only able to get it working using the Canary channel of Magisk. V23 did not work. When I install canary, the "Magiskhide" option is no longer in the settings. It looks like it's been replaced by the Zygisk feature. This means Riru and the safetynet-fix that depends on Riru don't work. I tried disabling Zygisk to install the linked modules, but that meant there was no option to add apps to the Zygisk deny list (which as far as I can tell works just like the old magiskhide list).
Fortunately, there is a Zygisk version of the universal fix. It took me more time than I'd like to admit to figure it all out, but in case it helps anyone else: older/stable/beta versions of Magisk installed and worked for SU, but the magiskhide option didn't work (it wouldn't enable).
Also, the first time I installed the Canary version, the modules screen was empty. It didn't show any modules. I don't know why, but that lead me down the path of trying different versions. Eventually I tried re-flashing the stock boot image, then the magisk-canary modified version again. Then I installed the Zygisk version of the Universal fix from the github. Enabled Zygisk, check that google play store and google protect service are on the deny list. Cleared data from Google Play Services. Google Pay now works.