blob: 125a975c5ad853a27b37fa233f6237e9164e91e7 [file] [log] [blame]
// Copyright 2016 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/#dom-paymentmanager
enum PaymentDelegation {
"shippingAddress",
"payerName",
"payerPhone",
"payerEmail",
};
[
Exposed=Window,
RuntimeEnabled=PaymentApp
] interface PaymentManager {
[SameObject, DeprecateAs=PaymentInstruments, RuntimeEnabled=PaymentInstruments] readonly attribute PaymentInstruments instruments;
attribute DOMString userHint;
[CallWith=ScriptState, RaisesException] Promise<void> enableDelegations(sequence<PaymentDelegation> delegations);
};