From 79375d8190036808b78d8c847729dc90bc20c634 Mon Sep 17 00:00:00 2001 From: Adrian Hope-Bailie Date: Fri, 22 Apr 2016 14:48:35 +0200 Subject: [PATCH] Removed parameter for complete() Addresses #129 by dropping the algorithm step that passes value to the payment app. As the boolean passed to complete is not used for anything else it has been dropped too. --- specs/paymentrequest.html | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/specs/paymentrequest.html b/specs/paymentrequest.html index 32f625a6..d0970a41 100644 --- a/specs/paymentrequest.html +++ b/specs/paymentrequest.html @@ -754,7 +754,7 @@

ShippingAddress interface

         interface ShippingAddress {
           readonly attribute DOMString regionCode;
-          readonly attribute sequence addressLine;
+          readonly attribute sequence<DOMString> addressLine;
           readonly attribute DOMString administrativeArea;
           readonly attribute DOMString locality;
           readonly attribute DOMString dependentLocality;
@@ -842,7 +842,7 @@ 

PaymentResponse interface

readonly attribute DOMString methodName; readonly attribute object details; - Promise<void> complete(boolean success); + Promise<void> complete(); };
@@ -866,9 +866,7 @@

PaymentResponse interface

complete()

The complete method must be called after the user has accepted the payment - request and the [[\acceptPromise]] has been resolved. The complete method - takes a boolean argument that indicates the payment was successfully processed if true and - that processing failed if false. Calling the complete method tells the user + request and the [[\acceptPromise]] has been resolved. Calling the complete method tells the user agent that the user interaction is over (and should cause any remaining user interface to be closed).

@@ -885,10 +883,6 @@

complete()

  • Set the value of the internal slot [[\completeCalled]] to true.
  • Return promise and asynchronously perform the remaining steps.
  • -
  • - Pass the value of success to the Payment App that accepted the - payment request. -
  • Close down any remaining user interface.
  • Resolve promise with undefined.