From 2b840752201cae0b1b95a39399bb93e513671049 Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Thu, 10 Aug 2017 14:53:48 +1000 Subject: [PATCH] Define generalized PMI validator --- index.html | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index e2e743e..7f85082 100644 --- a/index.html +++ b/index.html @@ -72,6 +72,27 @@

standardized payment method identifier. +
+

+ Validity +

+

+ The steps to validate a payment method identifier with a + pmi string are given by the following algorithm. It + returns either a true or false. +

+
    +
  1. Let url be the result of running the basic URL + parser with pmi. +
  2. +
  3. If url is failure, validate a standardized payment + method identifier with pmi and return the result. +
  4. +
  5. Otherwise, validate a URL-based payment method identifier + passing url and return the result. +
  6. +
+

@@ -194,10 +215,6 @@

the purpose of standardization, be sure that it conforms to the following regular expression: [a-z0-9-]+.

-

- User agents MUST NOT enforce validity or well-formedness of - standardized payment method identifiers. -

When used in an API, the following method identifiers are all