Skip to content

Commit eb33e43

Browse files
committed
Address privacy of post codes
1 parent f8f61f6 commit eb33e43

File tree

1 file changed

+27
-15
lines changed

1 file changed

+27
-15
lines changed

index.html

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,7 @@ <h2>
24092409
"PaymentAddress.PaymentAddress()">constructing</a> a
24102410
<a>PaymentAddress</a>. Its members are as follows.
24112411
</p>
2412-
<dl data-dfn-for="AddressInit" data-sort="ascending">
2412+
<dl data-dfn-for="AddressInit" data-link-for="" data-sort="ascending">
24132413
<dt>
24142414
<dfn>country</dfn> member
24152415
</dt>
@@ -2450,7 +2450,7 @@ <h2>
24502450
<dfn>sortingCode</dfn> member
24512451
</dt>
24522452
<dd>
2453-
A <a>sorting code</a>
2453+
A <a>sorting code</a>.
24542454
</dd>
24552455
<dt>
24562456
<dfn>languageCode</dfn> member
@@ -2539,7 +2539,8 @@ <h2>
25392539
</li>
25402540
<li>If "<a data-link-for="AddressField">phone</a>" is not in
25412541
<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
25432544
string if none was provided.
25442545
<aside class="note" title="Privacy of phone number">
25452546
<p>
@@ -2574,7 +2575,19 @@ <h2>
25742575
<li>If "<a data-link-for="AddressField">postalCode</a>" is not in
25752576
<var>excludeList</var>, set <var>details</var>["<a>postalCode</a>"]
25762577
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>
25782591
</li>
25792592
<li>If "<a data-link-for="AddressField">recipient</a>" is not in
25802593
<var>excludeList</var>, set <var>details</var>["<a>recipient</a>"] to
@@ -3232,7 +3245,7 @@ <h2>
32323245
run the following steps:
32333246
<ol>
32343247
<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>",
32363249
"<a>recipient</a>", "<a>addressLine</a>" ».
32373250
</li>
32383251
<li>Let <var>address</var> be the result of running the steps to
@@ -3374,11 +3387,12 @@ <h2>
33743387
</li>
33753388
<li>If the <a data-lt=
33763389
"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.
33823396
</li>
33833397
<li>If the <a data-lt=
33843398
"PaymentOptions.requestShipping">requestShipping</a> value of
@@ -3406,11 +3420,9 @@ <h2>
34063420
"PaymentOptions.requestPayerPhone">requestPayerPhone</a> value of
34073421
<var>request</var>.<a>[[\options]]</a> is true, then set the
34083422
<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.
34143426
</li>
34153427
<li>Set <var>response</var>.<a>[[\completeCalled]]</a> to false.
34163428
</li>

0 commit comments

Comments
 (0)