Index: third_party/WebKit/Source/modules/payments/PaymentResponse.idl |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentResponse.idl b/third_party/WebKit/Source/modules/payments/PaymentResponse.idl |
index 2a4a4f5841d02b16b6b0e9cdf286f3470fa2afc6..5c44335f4e508502b1c9f510a7971915db02aad4 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentResponse.idl |
+++ b/third_party/WebKit/Source/modules/payments/PaymentResponse.idl |
@@ -2,6 +2,14 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+// https://w3c.github.io/browser-payment-api/#idl-def-paymentcomplete |
+ |
+enum PaymentComplete { |
+ "success", |
+ "fail", |
+ "" |
+}; |
+ |
// https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#paymentresponse-interface |
[ |
@@ -12,5 +20,5 @@ |
[CallWith=ScriptState, RaisesException] readonly attribute object details; |
readonly attribute PaymentAddress? shippingAddress; |
- [CallWith=ScriptState] Promise<void> complete(boolean success); |
+ [CallWith=ScriptState] Promise<void> complete(optional PaymentComplete paymentResult = ""); |
}; |