blob: 10b88279dc253080e6cce63482e1e9dbc7f7b483 [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",
};
[
RuntimeEnabled=PaymentApp,
ConstructorCallWith=ExecutionContext
] interface PaymentManager {
[SameObject] readonly attribute PaymentInstruments instruments;
attribute DOMString userHint;
[CallWith=ScriptState, RuntimeEnabled=PaymentHandlerHandlesShippingAndContact] Promise<void> enableDelegations(FrozenArray<PaymentDelegation> delegations);
};