From 658f807b9ad27e32f5af5f4d07a1c81b50ed6bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Thu, 31 Aug 2017 15:58:28 +1000 Subject: [PATCH] Validate PMIs in supportedMethods (#581) closes #464 --- index.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/index.html b/index.html index 6ed57e84..4e4e7842 100644 --- a/index.html +++ b/index.html @@ -570,6 +570,18 @@

  • For each paymentMethod of methodData:
      +
    1. Run the steps + to + validate a payment method identifier with + paymentMethod.supportedMethods. + If it returns false, then throw a RangeError + exception and terminate this algorithm. Optionally, inform + the developer that the payment method identifier is + invalid. +
    2. If the data member of paymentMethod is missing, let serializedData be null. Otherwise, let @@ -2579,6 +2591,18 @@

    3. For each PaymentDetailsModifier modifier in modifiers:
        +
      1. + Run the steps to + validate a payment method identifier with + modifier.supportedMethods. + If it returns false, then abort the update + with a RangeError exception. Optional, + inform the developer that the payment method + identifier is invalid. +
      2. If the total member of modifier is present, then: