@domenic, so, in practice you would end up with (not ideal, IMO):
``` js
const request = new PaymentRequest(x, {paymentRequestId: "123121"},z);
const response = await request.show();
// stuff happens...
if (request.id === response.paymentRequestId ) {
}
```
What might be best is just call it `requestId` across all three:
```JS
const request = new PaymentRequest(x, {requestId: "123312"}, z);
const response = await request.show();
// stuff happens...
if (request.requestId === response.requestId ) {
}
```
WDYT?
--
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/426#issuecomment-281888079