blob: 54e4fe7b1b106427ce327b6a7dc3b217144bae3c [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://w3c.github.io/webpayments-payment-apps-api/#idl-def-paymentappmanager
enum PaymentDelegation {
"shippingAddress",
"payerName",
"payerPhone",
"payerEmail",
};
[
Exposed=Window,
RuntimeEnabled=PaymentApp,
ConstructorCallWith=ExecutionContext
] interface PaymentManager {
[SameObject] readonly attribute PaymentInstruments instruments;
attribute DOMString userHint;
[CallWith=ScriptState, RaisesException, RuntimeEnabled=PaymentHandlerHandlesShippingAndContact] Promise<void> enableDelegations(FrozenArray<PaymentDelegation> delegations);
};