Re: [w3c/browser-payment-api] Update complete() method to take a string and clarify its purpose (#161)

+1 to merge, this is better than the boolean in the spec right now. I feel a bit uneasy about the string value of "" (and the list of potential values growing in the future) and how a browser would affect the UI flow based on that value, but expect the browser vendors to give proper feedback on this in time. From a developers perspective, what you pass to the function is more clear now by just reading the code... I know what .complete("success") and .complete("fail") mean.

What happens when someone does .complete("failure")?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/pull/161#issuecomment-215271492

Received on Thursday, 28 April 2016 00:23:11 UTC