Closed
Bug 1505842
Opened 7 years ago
Closed 7 years ago
PaymentDetailsModifier member total should be required
Categories
(Core :: DOM: Web Payments, enhancement)
Core
DOM: Web Payments
Tracking
()
RESOLVED
DUPLICATE
of bug 1493860
Tracking | Status | |
---|---|---|
firefox65 | --- | affected |
People
(Reporter: jkratzer, Unassigned)
Details
According to the PaymentRequest.webidl, the total member of the PaymentDetailsModifier dictionary is not marked as required:
dictionary PaymentDetailsBase {
sequence<PaymentItem> displayItems;
sequence<PaymentShippingOption> shippingOptions;
sequence<PaymentDetailsModifier> modifiers;
};
However, I cannot find any use case where this value can be omitted without hitting the following exception:
TypeError: Missing required 'amount' member of PaymentItem.
If this is the case, would it be possible to mark this value as required within the IDL?
Comment 1•7 years ago
|
||
Did you see the bug referenced at https://dxr.mozilla.org/mozilla-central/rev/c291143e24019097d087f9307e59b49facaf90cb/dom/webidl/PaymentRequest.webidl#44-45 ?
Flags: needinfo?(jkratzer)
Reporter | ||
Comment 2•7 years ago
|
||
I had not, thanks. I'll close this in favor of bug 1493860.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(jkratzer)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•