Re: [w3c/payment-handler] Ability to set default instrument for given handler (#173)

That works. So defining a default also means defining a second key for that instrument.

In terms of the API would a design where I don't repeat the same instrument twice be better? Perhaps change first bullet to:

* The PaymentInstrument dictionary includes an optional attribute: defaultInstrumentKey (string). At most one instrument may have a value for defaultInstrumentKey within the scope of
PaymentManager.PaymentInstruments or within the scope of a PaymentWallet.

-- 
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/173#issuecomment-308208835

Received on Tuesday, 13 June 2017 18:37:01 UTC