chromium/third_party/blink/renderer/modules/payments/can_make_payment_event.idl

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3c.github.io/payment-handler/#the-canmakepaymentevent

[
    RuntimeEnabled=PaymentApp,
    Exposed=ServiceWorker
] interface CanMakePaymentEvent : ExtendableEvent {
    constructor(DOMString type, CanMakePaymentEventInit eventInitDict);

    [CallWith=ScriptState, RaisesException] void respondWith(Promise<boolean> canMakePaymentResponse);
};