[w3c/payment-handler] Clarification of "instrumentKey" language (#212)

It is my understanding that "instrumentKey" is not going to be set equally by all implementers as part of the "paymentrequest" event. 

self.addEventListener('paymentrequest', function(e) {
  // e.instrumentKey may or may not be set.
});

The [current draft text](https://w3c.github.io/payment-handler/#paymentinstruments-interface) says: 

> The instrumentKey identifier will be passed to the payment handler to indicate the PaymentInstrument selected by the user, if any.

I can see how "if any" may indicate that instrumentKey may not be set, but I would recommend language such as "the instrumentKey identifier may be passed if a specific PaymentInstrument has been selected by the user".

cc @rsolomakhin 

-- 
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-handler/issues/212

Received on Tuesday, 5 September 2017 14:15:40 UTC