Closed Bug 1441752 Opened 7 years ago Closed 6 years ago

Add regionCode attribute to PaymentAddress

Categories

(Core :: DOM: Web Payments, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: marcosc, Assigned: edenchuang)

References

(Blocks 1 open bug, )

Details

(Keywords: dev-doc-complete, Whiteboard: [webpayments-reserve])

Attachments

(2 files, 3 obsolete files)

PaymentAddress gained a `regionCode` attribute.
Blocks: 1441751
Assigning to Eden, but we are still working out the details in the spec (https://github.com/w3c/payment-request/pull/690). We also need to work out how we would actually support this, and if we should buy the data from ISO (or use Google's libaddressinput library). For the MVP, we are only supporting US and Canada, so it might be ok to just start with the regions of those two countries and go from there.
Assignee: chenyu.chuang → nobody
Whiteboard: webpayments][triage]
Whiteboard: webpayments][triage] → [webpayments][triage]
Priority: P2 → --
Whiteboard: [webpayments][triage] → [webpayments] [triage]
Flags: qe-verify+
Priority: -- → P3
QA Contact: hani.yacoub
Whiteboard: [webpayments] [triage] → [webpayments-reserve]
Assignee: nobody → mcaceres
Gonna add the DOM side, which will just take the string (e.g., "CA" for California). I'm not sure we will do any validation in the DOM code yet.
Status: NEW → ASSIGNED
Priority: P3 → P1
Priority: P1 → P2
P2: Assigned and actively worked on.
For assigned bugs being actively worked on we put the priority at P1.
Priority: P2 → P1
Sorry, I got derailed by a different bug 😢 I’ll came back to this soon and set the priority appropriately when I do.
Priority: P1 → P3
Attachment #9012506 - Flags: review?(amarchesini)
Attachment #9012507 - Flags: review?(amarchesini)
Assignee: mcaceres → echuang
Thanks for picking this up, Eden.
Priority: P3 → P1
Attachment #9012506 - Flags: review?(amarchesini) → review+
Attachment #9012507 - Flags: review?(amarchesini) → review+
rebase the patch.
Attachment #9012506 - Attachment is obsolete: true
Attachment #9014382 - Flags: review+
rebase the patch
Attachment #9012507 - Attachment is obsolete: true
Attachment #9014383 - Flags: review+
Keywords: checkin-needed
Pushed by nbeleuzu@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/a5a84cd8b79e Adding an new attribute regionCode in PaymentAddress. r=baku https://hg.mozilla.org/integration/mozilla-inbound/rev/37f53e939f61 mochitest for PaymentAddress.regionCode. r=baku
Keywords: checkin-needed
Fix the fail on BasiccardError tests.
Attachment #9014383 - Attachment is obsolete: true
Flags: needinfo?(echuang)
Attachment #9014425 - Flags: review+
Comment on attachment 9014425 [details] [diff] [review] mochitest for regionCode attribute. r=baku Review of attachment 9014425 [details] [diff] [review]: ----------------------------------------------------------------- I wonder if region shoube be “California”, indtead of CA?
tryserver result. https://treeherder.mozilla.org/#/jobs?repo=try&revision=d55f1a912b5c5ddcef3e589daad494b0759d0d1b&selectedJob=203415057 (In reply to Marcos Caceres [:marcosc] from comment #15) > Comment on attachment 9014425 [details] [diff] [review] > mochitest for regionCode attribute. r=baku > > Review of attachment 9014425 [details] [diff] [review]: > ----------------------------------------------------------------- > > I wonder if region shoube be “California”, indtead of CA? I guess so, but here we do not restrict it to be.
(In reply to Eden Chuang[:edenchuang] from comment #16) > I guess so, but here we do not restrict it to be. Correct - it's more so just to distinguish them. We can always go back later and make those changes.
Keywords: checkin-needed
Pushed by cbrindusan@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/c29045d23143 Adding an new attribute regionCode in PaymentAddress. r=baku https://hg.mozilla.org/integration/mozilla-inbound/rev/db490391893f mochitest for PaymentAddress.regionCode. r=baku
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
regionCode is displayed empty in the received response whether I type CA or California in "State" field. I'm not sure if the expected result is different than what I am verifying or what the expected behavior should be here.
Flags: needinfo?(echuang)
This bug only provides the regionCode attribute in PaymentResponse and PaymentAddress. I didn't implement the auto-generation of "regionCode" from "region". That's why you get the empty "regionCode" in PaymentResponse. We need a follow bug or reopen this bug for UI code implementation.
Flags: needinfo?(echuang)
So should I log a bug for that?
Flags: needinfo?(echuang)
Already documented. I added a mention to Firefox 64 for developers, though, and will have a PR submitted shortly that updates BCD for this.
No Web Payment stuff should be in Firefox NN for developers where NN isn't Nightly as the feature isn't riding the trains so you can't even pref it on for Fx64 if you want to.
Flags: needinfo?(eshepherd)
Yep, already fixed. I zoned on that one. :)
Flags: needinfo?(eshepherd)
Flags: needinfo?(echuang)

I'll change "qe-verify+" flag to "qe-verify-" since I can't verify this bug manually.

Flags: qe-verify+ → qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: