Closed
Bug 805123
Opened 12 years ago
Closed 12 years ago
Remove country code validation from navigator.mozPay()
Categories
(Core :: DOM: Device Interfaces, defect, P3)
Core
DOM: Device Interfaces
Tracking
()
People
(Reporter: kumar, Assigned: ferjm)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
3.75 KB,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
As discussed [1] the country code can be removed from client side validation of JWTs since it not needed. Until this is fixed, the Marketplace and apps that accept in-app payments will have to pass in country: XX to pass validation. Part of this change would be to make request.defaultPrice to point instead to a currency code (I'm not sure if that affects validation or not). Validation happens here: http://mxr.mozilla.org/mozilla-central/source/dom/payment/Payment.jsm#314 [1] https://groups.google.com/d/msg/mozilla.dev.webapps/A5U2L2B012U/q8BYTaJzy9UJ +++ This bug was initially created as a clone of Bug #800511 +++
Reporter | ||
Updated•12 years ago
|
Comment 1•12 years ago
|
||
Putting this in the nom queue based on the design decision in comment 0. Note to bug triagers: If we don't do this, we'll need to document that a caller will need to provide a country code that will not be used. It's possible that I could hear an argument that this may be okay to have though, however. To whoever triages this - I'd really appreciate getting a rationale written in the bug especially for this one if it blocks or not and why.
blocking-basecamp: --- → ?
Comment 2•12 years ago
|
||
We discussed this and think it should be a P3 blocker. If we don't get a patch very soon we're likely to not block on this. Kumar, will you do this work?
blocking-basecamp: ? → +
Priority: -- → P3
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → ferjmoreno
Reporter | ||
Comment 3•12 years ago
|
||
Looks like Fernando took it as he knows it best. Thanks Fernando.
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #675611 -
Flags: review?(fabrice)
Reporter | ||
Comment 5•12 years ago
|
||
For the record: country codes were originally intended to handle prices in the same currency that might change depending on the country. We are leaning toward handling that instead by using priceTier: 1, 2, ... That way we can also handle currency rate fluctuation and prices that might change per carrier.
Updated•12 years ago
|
Attachment #675611 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 6•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7035e54f92fc
Comment 7•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7035e54f92fc
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Updated•12 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•