Re: [w3c/payment-handler] Add userHint to PaymentManager (#206)

> Why?

I'm not sure how familiar the folks are with the "insert before" paradigm. If do go with it, I'd prefer to augment the current `set()` method instead:

```webidl
interface PaymentInstruments {
  ...
  Promise<void> set(DOMString instrumentKey,
                    PaymentInstrument details,
                    DOMString? instrumentKeyBefore);
};
```

If the `instrumentKeyBefore` is not provided, then `details` is inserted at the end of the ordered map.

-- 
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/pull/206#issuecomment-325027706

Received on Friday, 25 August 2017 20:33:12 UTC