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 10f9aabb31fd60bffa430950780fb51334d3f217..cc2e8feb6027bfe1156a6fcea6ec33eae0234b78 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 |
[ |
@@ -11,5 +19,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 = ""); |
}; |