This payment handler is for "basic-card". The code is correct except for one bug: there is no web app manifest linked from this page. This causes Chrome to identify this payment handler only by its origin. Chrome will print a warning message in developer tools console at the time of install.
Checking whether the payment handler is installed...