|
4578 | 4578 | "PaymentResponse.payerPhone">payerPhonea> value, the user agent
|
4579 | 4579 | SHOULD format the phone number to adhere to [[E.164]].
|
4580 | 4580 | li>
|
| 4581 | + <li>Set <var>requestvar>.<a>[[\state]]a> to "<a>closeda>". |
| 4582 | + li> |
4581 | 4583 | <li>If <var>isRetryvar> is true, resolve
|
4582 | 4584 | <var>responsevar>.<a>[[\retryPromise]]a> with undefined.
|
4583 | 4585 | Otherwise, resolve <var>requestvar>.<a>[[\acceptPromise]]a> with
|
4584 | 4586 | <var>responsevar>.
|
4585 | 4587 | li>
|
4586 |
| - <li>Set <var>requestvar>.<a>[[\state]]a> to "<a>closeda>". |
4587 |
| - li> |
4588 | 4588 | ol>
|
4589 | 4589 | section>
|
4590 | 4590 | <section>
|
|
4602 | 4602 | <li>Let <var>requestvar> be the <a>PaymentRequesta> object that
|
4603 | 4603 | the user is interacting with.
|
4604 | 4604 | li>
|
4605 |
| - <li>If the <var>requestvar>.<a>[[\updating]]a> is true, then |
4606 |
| - terminate this algorithm and take no further action. The <a>user |
4607 |
| - agenta> user interface SHOULD ensure that this never occurs. |
4608 |
| - li> |
4609 | 4605 | <li>If <var>requestvar>.<a>[[\state]]a> is not
|
4610 | 4606 | "<a>interactivea>", then terminate this algorithm and take no
|
4611 | 4607 | further action. The <a>user agenta> user interface SHOULD ensure
|
|
4637 | 4633 | <li>Otherwise, reject <var>requestvar>.<a>[[\acceptPromise]]a>
|
4638 | 4634 | with <var>errorvar>.
|
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 | 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>detailsPromisevar> 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 handlera> decides to abort this particular payment, |
| 4661 | + the user agent MUST run the <a>user aborts the payment request |
| 4662 | + algorithma>. |
4661 | 4663 | p>
|
4662 | 4664 | <ol class="algorithm">
|
4663 | 4665 | <li>Set <var>requestvar>.<a>[[\updating]]a> to true.
|
|
0 commit comments