- The steps to construct a PymentAddress
- with AddressInitdetails are given by the
- following algorithm:
+ The steps to construct a
+ PaymentAddress with AddressInit
+ details are given by the following algorithm:
Let address be a new instance of
@@ -2028,47 +2032,19 @@
- Creating a PaymentAddress
+ Creating a PaymentAddress from user-provided input
- The steps to create a payment address from user-provided
- input are given by the following algorithm.
+ The steps to create a PaymentAddress from
+ user-provided input are given by the following algorithm. The
+ algorithm takes a listexcludeList, which
+ includes zero or more members identifier for which user input is
+ not gathered.
If "addressLine" is not in excludeList, set
+ details.["addressLine"] to the result of
splitting the user-provided address line into a frozen array. If none was
- provided, set it to the empty frozen array.
+ provided, set it to the empty list.
-
Set address.[[\country]] to the user-provided
- country as an upper case [[!ISO3166]] alpha-2 code, or to the empty
- string if none was provided.
+
If "country" is not in excludeList, set
+ details.[[\country]] to the user-provided country
+ as an upper case [[!ISO3166]] alpha-2 code, or to the empty string
+ if none was provided.
-
Set the address.[[\phone]] to the
- user-provided phone number for this shipping address, optionally
- formatted to adhere to [[!E.164]], or to the empty string if none
- was provided.
+
If "phone" is not in excludeList, set
+ details.["phone"] to the user-provided phone
+ number for this shipping address, optionally formatted to adhere to
+ [[!E.164]], or to the empty string if none was provided.
If "dependentLocality" is not in excludeList, set
+ details.["dependentLocality"] to the
user-provided dependent locality, or to the empty string if none
was provided.
-
Set address.[[\organization]] to the
- user-provided recipient organization, or to the empty string if
- none was provided.
-
-
Set address.[[\postalCode]] to the
- user-provided postal code, or to the empty string if none was
+
If "organization" is not in excludeList, set
+ details.["organization"] to the user-provided
+ recipient organization, or to the empty string if none was
provided.
-
Set address.[[\recipient]] to the
- user-provided recipient of the transaction, or to the empty string
- if none was provided.
+
If "postalCode" is not in excludeList, set
+ details.["postalCode"] to the user-provided
+ postal code, or to the empty string if none was provided.
-
Set address.[[\region]] to the user-provided
- region, or to the empty string if none was provided.
-
-
Set address.[[\sortingCode]] to the
- user-provided sorting code, or to the empty string if none was
+
If "recipient" is not in excludeList, set
+ details.["recipient"] to the user-provided
+ recipient of the transaction, or to the empty string if none was
provided.
-
Return address.
+
If "region" is not in excludeList, set
+ details.["region"] to the user-provided region,
+ or to the empty string if none was provided.
+
+
If "sortingCode" is not in excludeList, set
+ details.["sortingCode"] to the user-provided
+ sorting code, or to the empty string if none was provided.
+
A country as an [[!ISO3166]] alpha-2 code or the empty
- string. The canonical form is upper case. For example, "JP".
+ string stored in its canonical uppercase form. For example,
+ "JP".
@@ -2500,7 +2526,7 @@
Strip and collapse ASCII whitespace in tel.
-
If the length is greater 15, return false.
+
If tel's the length is greater 15, return false.
If the first code point is not U+002B PLUS SIGN, return false.