-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
daeb37d
commit e3893b3
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -547,6 +547,24 @@ <h2> | |
</li> | ||
<li>For each <var>paymentMethod</var> of <var>methodData</var>: | ||
<ol> | ||
<li>Let <var>isValidString</var> be the result of | ||
<a data-cite= | ||
"!payment-method-id#dfn-validate-a-standardized-payment-method-identifier"> | ||
validating</a> <var>paymentMethod</var>'s | ||
<a>supportedMethods</a> member as a standardized method | ||
identifer. | ||
</li> | ||
<li>If <var>isValidString</var> is false, <a data-cite= | ||
This comment has been minimized.
Sorry, something went wrong. |
||
"!payment-method-id#dfn-validate-a-url-based-payment-method-identifier"> | ||
validate</a> <var>paymentMethod</var>'s | ||
<a>supportedMethods</a> member as a URL-based payment | ||
method identifer. If the result is again false, remove this | ||
<var>paymentMethod</var> from <var>methodData</var> and | ||
continue to the next <var>paymentMethod</var> (if any) | ||
ignoring the sub-steps below and optionally informing the | ||
developer that <var>paymentMethod</var>'s | ||
<a>supportedMethods</a> member is invalid. | ||
This comment has been minimized.
Sorry, something went wrong.
adrianhopebailie
Collaborator
|
||
</li> | ||
<li>If the <a data-lt="PaymentMethodData.data">data</a> | ||
member of <var>paymentMethod</var> is missing, let | ||
<var>serializedData</var> be null. Otherwise, let | ||
|
The input into the validation algorithm is a URL so this algorithm should have a step to parse the string as a URL first and re-throw any exceptions.