Re: [w3c/payment-request] Add way to update `total` and `displayItems` after `.show()` but before user interaction (#645)

> It's worth noting that this workaround is not ideal, because show() may not always be callable without a user gesture.

I don't think there is a requirement on user gesture... just that the page has focus. Does that help? I don't remember who showed this... but: 

```JS
const pr = new PaymentRequest(method, options, details);
pr.show(getUpdateTotal()); // show loading until `getUpdateTotal()`'s promise resolves  
``` 

-- 
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/payment-request/issues/645#issuecomment-342606873

Received on Tuesday, 7 November 2017 20:11:03 UTC