A criticism that we can move against Xiaomi smartphone is the absence of the form NFC, inserted only on some specimens, but that more and more is instead sought in a device given the growing mobile payment services that are being developed. Among the most famous we surely find Google Pay, but how to do if at some point on the display of our terminal we find the writing "GOOGLE PAY STOPPED TO WORK"?
Some users have come across this error, while at others the service seems to work correctly and the cause of the problem does not seem to depend on the firmware version as according to the reports this occurred on both official and custom MIUI versions. The reason for the problem seems to be caused by Google itself, or rather by developers who are trying to improve the Google Pay service protection system. In fact, the mobile payment app seems to give problems only to those users who have given root permissions to their smartphone via the Magisk app. So let's see how to solve this problem and how to test it properly.
First of all, let's remember that for Google Pay payments to work properly, it is necessary that the firmware pass the SafetyNet check. You can then proceed to the test using the application SafetyNet Test, which should return the following results:
PASSED: means that the test has passed. Google Pay should work.
FAILED: not passed. Google Pay will not work.
If the test is successful, but when you pay or add a card, you will receive an alert like: "You can not pay with this device in stores through Google Pay" or something like that, you have to do the following.
Google Pay stopped working? Here is the solution
If you are not using Magisk, you can jump directly to the third point. If instead you have installed the tool before starting it you have to go in the settings and click on the "HIDE MAGISK MANAGER". On the phone's home you will now have a new MANAGER connection with a random package name.
Open the "MANAGER" again, go to the Hide tab of Magisk, in the upper right corner click on the menu (three points) and check the "Show system app" checkbox (shows system applications). Then click on the search icon and type "Google". Now you will only see Google applications for which you can mark root permissions.
Erase all data from the Google Play Services app. To do so, go to Settings> All Apps> Google Play Services> Clear Data> Delete All Data. Do the same with the Google Services Framework and the Google Pay application. Then restart the device.
Now you just have to start Google Pay and add a payment card.
So many have solved the problem while some have had to update Magisk to the trial version 18.2_canary.zip through the TWRP recovery and then they have adopted the procedure just described.