if(window.PaymentReqeust) {
console.log("support")
} else {
console.log("not support")
}
ただし、payment Request API が使用可能でかつ、クレジット情報が既にブラウザに保存済みか調べるためにはpaymentRequestオブジェクトを生成したのち、canMakePayment()を使用しないと確認できない。
ref:
https://developer.mozilla.org/ja/docs/Web/API/Payment_Request_API/Using_the_Payment_Request_API