Re: [w3c/webpayments] Overview document figure 5 (#171)

>> The way the API is defined today, the merchant website is in control of when the mediator closes (via complete(string) method). If the merchant chooses to close the mediator immediately, they are free to call complete("") before processing the transaction.

> This seems to be what we ought to always recommend that merchants do since the flow can't be recovered.

You're correct that the mediator cannot recover if the merchant rejects the transaction. However, I would not want to recommend merchants to immediately call `complete("")` before processing the transaction. This forces merchants to show their own "Processing..." spinner, which is going to look different on different websites. These merchants would lose the advantage of a unified mediator UI, to which the user is accustomed.

---
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/webpayments/issues/171#issuecomment-238953265

Received on Wednesday, 10 August 2016 18:10:38 UTC