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

Based on a discussion with @adamroach and @rsolomakhin, I have written this pull request
to address issue #173 .

The idea is that the payment handler provides a user hint (e.g., "**** 1234") that can complement
name and icon information associated with the payment handler. Although the user agent
could compute hint information like this (e.g., based on N payment instruments managed by the payment handler), this attribute gives more control to the payment handler.

I did not attempt to specify exactly how the string should be used, or combined with the name/logo of the payment handler.

This user hint string does not affect user interface behavior. Specifically, it does not mean that a particular payment instrument will be invoked automatically when the user selects the payment handler.

Ian


You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/payment-handler/pull/206

-- Commit Summary --

  * Add userHint for issue 173

-- File Changes --

    M index.html (12)

-- Patch Links --

https://github.com/w3c/payment-handler/pull/206.patch
https://github.com/w3c/payment-handler/pull/206.diff

-- 
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

Received on Friday, 25 August 2017 16:31:10 UTC