Closed
Bug 1455789
Opened 7 years ago
Closed 6 years ago
Finalize option sorting and default selected index for the payment method picker
Categories
(Firefox :: WebPayments UI, enhancement)
Firefox
WebPayments UI
Tracking
()
RESOLVED
DUPLICATE
of bug 1494551
People
(Reporter: sfoster, Unassigned)
References
(Blocks 1 open bug)
Details
PaymentMethodPicker currently displays options in the order they were added - i.e chronological order. So the most recently added (and possibly the most relevant) card appears at the bottom of the list. We may want to reverse this order, or sort by the record's timeLastModified property.
When there is no existing selection (state.selectedPaymentCard) - or the previously selected entry has since been removed - we currently select the first (0th) option. Depending on how the list is sorted, that may not be the best UX.
If something like the paymentmethodchanged event[1] gets added to the spec, automatically selecting an option could trigger a side-effect where some credit card (methodName, methodDetails) are sent to the merchant as a result of the change event. This might be unexpected for the user if our guess at the best default doesnt match the card they want to use.
1. https://github.com/w3c/payment-request/pull/695
Updated•7 years ago
|
Whiteboard: [webpayments] → [webpayments-reserve]
Comment 1•7 years ago
|
||
The same problem also applies to address picker ordering and I think we may as well discuss them together.
Updated•7 years ago
|
Product: Toolkit → Firefox
Version: unspecified → Trunk
Comment 2•6 years ago
|
||
Sorting is bug 1494551 and paymentmethodchange (bug 1477113) was specified in a way that should avoid the surprise I think.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Priority: P3 → --
Whiteboard: [webpayments-reserve]
You need to log in
before you can comment on or make changes to this bug.
Description
•