[paymentrequest] Proposal to move the complete() method to the PaymentResponse interface (#48)

This is a proposal to move the complete() method to the PaymentResponse interface after discussion with @travisleithead. Travis pointed out that complete felt like it was in the wrong place since you can only call it after the user accepts the payment. Moving it here also makes it natural to return a promise so that any user interface work can be torn down asynchronously (say if an animation is shown) and the page knows when it is done. Working this way also eliminates the "accepted" state, since that was only used to validate that complete() wasn't called at the right time.
You can view, comment on, or merge this pull request online at:

  https://github.com/WICG/paymentrequest/pull/48

-- Commit Summary --

  * Move the complete() method to the PaymentResponse interface

-- File Changes --

    M specs/paymentrequest.html (61)
    M specs/state-transitions.svg (44)

-- Patch Links --

https://github.com/WICG/paymentrequest/pull/48.patch
https://github.com/WICG/paymentrequest/pull/48.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/WICG/paymentrequest/pull/48

Received on Thursday, 11 February 2016 04:12:57 UTC