@@ -2409,7 +2409,7 @@ <h2>
2409
2409
"PaymentAddress.PaymentAddress() "> constructing</ a > a
2410
2410
< a > PaymentAddress</ a > . Its members are as follows.
2411
2411
</ p >
2412
- < dl data-dfn-for ="AddressInit " data-sort ="ascending ">
2412
+ < dl data-dfn-for ="AddressInit " data-link-for ="" data- sort ="ascending ">
2413
2413
< dt >
2414
2414
< dfn > country</ dfn > member
2415
2415
</ dt >
@@ -2450,7 +2450,7 @@ <h2>
2450
2450
< dfn > sortingCode</ dfn > member
2451
2451
</ dt >
2452
2452
< dd >
2453
- A < a > sorting code</ a >
2453
+ A < a > sorting code</ a > .
2454
2454
</ dd >
2455
2455
< dt >
2456
2456
< dfn > languageCode</ dfn > member
@@ -2539,7 +2539,8 @@ <h2>
2539
2539
</ li >
2540
2540
< li > If "< a data-link-for ="AddressField "> phone</ a > " is not in
2541
2541
< var > excludeList</ var > , set < var > details</ var > ["< a > phone</ a > "] to the
2542
- user-provided < a > structurally valid phone number</ a > , or to the empty
2542
+ user-provided < a > structurally valid phone number</ a > in < a data-lt =
2543
+ "canonicalize a phone number "> canonical form</ a > , or to the empty
2543
2544
string if none was provided.
2544
2545
< aside class ="note " title ="Privacy of phone number ">
2545
2546
< p >
@@ -2574,7 +2575,19 @@ <h2>
2574
2575
< li > If "< a data-link-for ="AddressField "> postalCode</ a > " is not in
2575
2576
< var > excludeList</ var > , set < var > details</ var > ["< a > postalCode</ a > "]
2576
2577
to the user-provided postal code, or to the empty string if none was
2577
- provided.
2578
+ provided. Optionally, redact part of
2579
+ < var > details</ var > ["< a > postalCode</ a > "].
2580
+ < div class ="note " title ="Privacy of Postal Codes ">
2581
+ < p >
2582
+ < a > Postal codes</ a > in certain countries can be so specific as to
2583
+ uniquely identify an individual. This being a privacy concern,
2584
+ some user agents only return the part of a postal code that they
2585
+ deem sufficient for a merchant to calculate shipping costs. This
2586
+ varies across countries and regions, and so the choice to redact
2587
+ part, or all, of the postal code is left to the discretion of
2588
+ implementers in the interest of protecting users' privacy.
2589
+ </ p >
2590
+ </ div >
2578
2591
</ li >
2579
2592
< li > If "< a data-link-for ="AddressField "> recipient</ a > " is not in
2580
2593
< var > excludeList</ var > , set < var > details</ var > ["< a > recipient</ a > "] to
@@ -3232,7 +3245,7 @@ <h2>
3232
3245
run the following steps:
3233
3246
< ol >
3234
3247
< li data-link-for ="AddressField "> Let < var > excludeList</ var > be
3235
- the list « "< a > organization</ a > ", "< a > phoneNumber </ a > ",
3248
+ the list « "< a > organization</ a > ", "< a > phone </ a > ",
3236
3249
"< a > recipient</ a > ", "< a > addressLine</ a > " ».
3237
3250
</ li >
3238
3251
< li > Let < var > address</ var > be the result of running the steps to
@@ -3374,11 +3387,12 @@ <h2>
3374
3387
</ li >
3375
3388
< li > If the < a data-lt =
3376
3389
"PaymentOptions.requestShipping "> requestShipping</ a > value of
3377
- < var > request</ var > .< a > [[\options]]</ a > is true, then set the
3378
- < a data-lt ="PaymentResponse.shippingAddress "> shippingAddress</ a >
3379
- attribute of < var > response</ var > to the value of the < a data-lt =
3380
- "PaymentRequest.shippingAddress "> shippingAddress</ a > attribute of
3381
- < var > request</ var > . Otherwise, set it to null.
3390
+ < var > request</ var > .< a > [[\options]]</ a > is true, then < a > create a
3391
+ < code > PaymentAddress</ code > from user-provided input</ a > passing the
3392
+ empty list as the < var > excludeList</ var > and set the < a data-lt =
3393
+ "PaymentResponse.shippingAddress "> shippingAddress</ a > attribute of
3394
+ < var > response</ var > to the resulting < a > PaymentAddress</ a > .
3395
+ Otherwise, set it to null.
3382
3396
</ li >
3383
3397
< li > If the < a data-lt =
3384
3398
"PaymentOptions.requestShipping "> requestShipping</ a > value of
@@ -3406,11 +3420,9 @@ <h2>
3406
3420
"PaymentOptions.requestPayerPhone "> requestPayerPhone</ a > value of
3407
3421
< var > request</ var > .< a > [[\options]]</ a > is true, then set the
3408
3422
< a data-lt ="PaymentResponse.payerPhone "> payerPhone</ a > attribute of
3409
- < var > response</ var > to the payer's phone number provided by the user,
3410
- or to null if none was provided. When setting the < a data-lt =
3411
- "PaymentResponse.payerPhone "> payerPhone</ a > value, the user agent
3412
- SHOULD format the phone number to adhere to [[!E.164]]. Otherwise,
3413
- set it to null.
3423
+ < var > response</ var > to a < a > structurally valid phone number</ a > in
3424
+ < a data-lt ="canonicalize a phone number "> canonical form</ a > provided
3425
+ by the user, or to null if none was provided.
3414
3426
</ li >
3415
3427
< li > Set < var > response</ var > .< a > [[\completeCalled]]</ a > to false.
3416
3428
</ li >
0 commit comments