After executing canMakePayments, an error occurs when executing window.webkit.messageHandlers.xxxx.postMessage.

On the payment screen of my website, I executed the canMakePayments method to check if the user has an ApplePay-enabled device.

The process worked fine, but when I executed the window.webkit.messageHandlers.xxxx.postMessage method in JS to do the following, the process stopped.

window.webkit.messageHandlers.xxx.postMessage is it not possible to use it when using ApplePayJS?

Or is there some problem such as a restriction on the JS window object?

Test Info

I had created Apple Pay merchant ID and certificates, and verify your domain and set up server for secure communications with Apple Pay. Apple Pay JS Version is 11 I have been using Sandbox account (Visa, Mastercard), iOS 14.6, and iphone8

After executing canMakePayments, an error occurs when executing window.webkit.messageHandlers.xxxx.postMessage.
 
 
Q