blob: 6401233f885c2d3252e41df8907f7d7c882480d8 [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.
enum PaymentComplete {
] interface PaymentResponse : EventTarget {
[CallWith=ScriptState, ImplementedAs=toJSONForBinding] object toJSON();
readonly attribute DOMString requestId;
readonly attribute DOMString methodName;
[CallWith=ScriptState] readonly attribute object details;
readonly attribute PaymentAddress? shippingAddress;
readonly attribute DOMString? shippingOption;
readonly attribute DOMString? payerName;
readonly attribute DOMString? payerEmail;
readonly attribute DOMString? payerPhone;
[CallWith=ScriptState, NewObject] Promise<void> complete(optional PaymentComplete paymentResult = "unknown");
[CallWith=ScriptState, NewObject, RuntimeEnabled=PaymentRetry] Promise<void> retry(optional PaymentValidationErrors errorFields);
[RuntimeEnabled=PaymentRetry] attribute EventHandler onpayerdetailchange;