@@ -4578,13 +4578,13 @@ <h2>
4578
4578
"PaymentResponse.payerPhone "> payerPhone</ a > value, the user agent
4579
4579
SHOULD format the phone number to adhere to [[E.164]].
4580
4580
</ li >
4581
+ < li > Set < var > request</ var > .< a > [[\state]]</ a > to "< a > closed</ a > ".
4582
+ </ li >
4581
4583
< li > If < var > isRetry</ var > is true, resolve
4582
4584
< var > response</ var > .< a > [[\retryPromise]]</ a > with undefined.
4583
4585
Otherwise, resolve < var > request</ var > .< a > [[\acceptPromise]]</ a > with
4584
4586
< var > response</ var > .
4585
4587
</ li >
4586
- < li > Set < var > request</ var > .< a > [[\state]]</ a > to "< a > closed</ a > ".
4587
- </ li >
4588
4588
</ ol >
4589
4589
</ section >
4590
4590
< section >
@@ -4602,10 +4602,6 @@ <h2>
4602
4602
< li > Let < var > request</ var > be the < a > PaymentRequest</ a > object that
4603
4603
the user is interacting with.
4604
4604
</ li >
4605
- < li > If the < var > request</ var > .< a > [[\updating]]</ a > is true, then
4606
- terminate this algorithm and take no further action. The < a > user
4607
- agent</ a > user interface SHOULD ensure that this never occurs.
4608
- </ li >
4609
4605
< li > If < var > request</ var > .< a > [[\state]]</ a > is not
4610
4606
"< a > interactive</ a > ", then terminate this algorithm and take no
4611
4607
further action. The < a > user agent</ a > user interface SHOULD ensure
@@ -4637,6 +4633,9 @@ <h2>
4637
4633
< li > Otherwise, reject < var > request</ var > .< a > [[\acceptPromise]]</ a >
4638
4634
with < var > error</ var > .
4639
4635
</ li >
4636
+ < li > Abort the current user interaction and close down any remaining
4637
+ user interface.
4638
+ </ li >
4640
4639
</ ol >
4641
4640
</ section >
4642
4641
< section >
@@ -4654,10 +4653,13 @@ <h2>
4654
4653
blocked. The user agent SHOULD provide the user with a means to abort
4655
4654
a payment request. Implementations MAY choose to implement a timeout
4656
4655
for pending updates if < var > detailsPromise</ var > doesn't settle in a
4657
- reasonable amount of time. If an implementation chooses to implement
4658
- a timeout, they MUST execute the steps listed below in the "upon
4659
- rejection" path. Such a timeout is a fatal error for the payment
4660
- request.
4656
+ reasonable amount of time.
4657
+ </ p >
4658
+ < p >
4659
+ In the case where a timeout occurs, or the user manually aborts, or
4660
+ the < a > payment handler</ a > decides to abort this particular payment,
4661
+ the user agent MUST run the < a > user aborts the payment request
4662
+ algorithm</ a > .
4661
4663
</ p >
4662
4664
< ol class ="algorithm ">
4663
4665
< li > Set < var > request</ var > .< a > [[\updating]]</ a > to true.
0 commit comments