Fix Google Pay not working on Chrome

I encountered a weird problem that clicking a "Buy with Google Pay" button flashes a Processing dialog and immediately closes/fails. Stranger that Safari was working fine, while Chrome remains broken for me for several weeks. Opening the browser console reveals a hint: NotSupportedError: The payment method "