Skip to content

Commit

Permalink
Remove must in complete() (#280)
Browse files Browse the repository at this point in the history
The complete method description indicated that the method must be called after the user has accepted the payment request.  This use of "must" was a requirement on the web page, and as an RFC 2119 term was misleading.  

Also, there is a SHOULD requirement on user agents in the paragraph, but the SHOULD was not in upper case so it was not called out as an assertion.
  • Loading branch information
halindrome authored and adrianba committed Sep 19, 2016
1 parent af53cdf commit 1017a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1095,9 +1095,9 @@ <h2>PaymentResponse interface</h2>

<section>
<h2>complete()</h2>
<p>The <code><dfn>complete</dfn></code> method must be called after the user has accepted the payment
<p>The <code><dfn>complete</dfn></code> method is called after the user has accepted the payment
request and the [[\acceptPromise]] has been resolved. Calling the <code>complete</code> method tells
the <a>user agent</a> that the user interaction is over (and should cause any remaining user interface to be
the <a>user agent</a> that the user interaction is over (and SHOULD cause any remaining user interface to be
closed).</p>
<p>The <code>complete</code> method takes a string argument from the <code><dfn>PaymentComplete</dfn></code>
enum (<code>result</code>). These values are used to influence the user experience provided by the <a>user agent</a>
Expand Down

0 comments on commit 1017a5a

Please sign in to comment.