From 8e6b86dc1df160c19dbd3af5ba71cb3d1e1c4626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Wed, 21 Nov 2018 17:30:44 +1100 Subject: [PATCH 1/3] Redact more things from billingAddress --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 6f93ef3..c6af69e 100644 --- a/index.html +++ b/index.html @@ -309,7 +309,8 @@

  • If a billing address is not required for this card then set card["billingAddress"] to null. Otherwise:
      -
    1. Let redactList be « "phone" ». +
    2. Let redactList be « "phone", "organization", + "recipient" ».
    3. Let billingAddress be the result running the steps to Date: Thu, 22 Nov 2018 13:32:56 +1100 Subject: [PATCH 2/3] billingAddress is null unless requested --- index.html | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index c6af69e..dc2f0f6 100644 --- a/index.html +++ b/index.html @@ -266,8 +266,9 @@

      The steps to respond to a payment request are given by the - following algorithm. If the end user inputs or selects a card - that meets the constraints of BasicCardRequest + following algorithm. The steps take PaymentRequest + request as input. If the end user inputs or selects a + card that meets the constraints of BasicCardRequest data, the algorithm returns a card as a BasicCardResponse.

      @@ -306,21 +307,22 @@

      string if the user chooses not to provide it or the card doesn't require an expiry year.

    4. -
    5. If a billing address is not required for this card then - set card["billingAddress"] to null. Otherwise: +
    6. Set card["billingAddress"] to null. +
    7. +
    8. If request.[[\options]]["requestBillingAddress"] + is true:
      1. Let redactList be « "phone", "organization", "recipient" ».
      2. -
      3. Let billingAddress be the result running the steps - to Set card["billingAddress"] to the result of + running the steps to create a PaymentAddress from user-provided input with redactList.
      4. -
      5. Set card["billingAddress"] to - billingAddress. -
    9. From dff1ee819f6b381843e128d9e48bf64100d4cb8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Thu, 22 Nov 2018 16:28:39 +1100 Subject: [PATCH 3/3] Allow UA to optionally include billing address --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index dc2f0f6..f156c96 100644 --- a/index.html +++ b/index.html @@ -312,7 +312,9 @@

    10. If request.[[\options]]["requestBillingAddress"] - is true: + is true, or, optionally, the user agent determines that payment is + taking place in region where validation of billing addresses against + an address verification system is the norm:
      1. Let redactList be « "phone", "organization", "recipient" ».