@@ -148,32 +148,6 @@ <h2>
148148 method.
149149 </ li >
150150 </ ul >
151- < p >
152- A payment method defines:
153- </ p >
154- < dl >
155- < dt >
156- An optional < dfn data-dfn-for ="Payment Method "> additional data
157- type</ dfn >
158- </ dt >
159- < dd >
160- Optionally, an IDL type that the < a > payment method</ a > expects to
161- receive as the {{PaymentMethodData}}'s {{PaymentMethodData/data}}
162- member. If not specified for a given payment method, no conversion to
163- IDL is done and the payment method will receive
164- {{PaymentMethodData/data}} as JSON.
165- </ dd >
166- < dt >
167- < dfn > Steps to validate payment method data</ dfn >
168- </ dt >
169- < dd >
170- Algorithmic steps that specify how a < a > payment method</ a > validates
171- the {{PaymentMethodData/data}} member of the {{PaymentMethodData}},
172- after it is converted to the payment method's [=Payment
173- Method/additional data type=]. If not specified for a given payment
174- method, no validation is done.
175- </ dd >
176- </ dl >
177151 < p >
178152 The details of how to fulfill a payment request for a given < a > payment
179153 method</ a > is an implementation detail of a < dfn data-export =""> payment
@@ -599,10 +573,9 @@ <h2>
599573 |paymentMethod|.{{PaymentMethodData/data}} into a string.
600574 Rethrow any exceptions.
601575 </ li >
602- < li > If |serializedData| is not null, and if the specification
603- that defines the
604- |paymentMethod|.{{PaymentMethodData/supportedMethods}}
605- specifies an [=Payment Method/additional data type=]:
576+ < li > If |serializedData| is not null, and if required by the
577+ specification that defines the
578+ |paymentMethod|.{{PaymentMethodData/supportedMethods}}:
606579 < ol >
607580 < li > Let |object| be the result of < a data-cite =
608581 "ECMASCRIPT#sec-json.parse "> JSON-parsing</ a >
@@ -612,16 +585,15 @@ <h2>
612585 < p >
613586 Let |idl| be the result of [=converted to an IDL
614587 value|converting=] |object| to an IDL value of the
615- [=Payment Method/additional data type=]. Rethrow any
616- exceptions.
588+ type specified by the specification that defines the
589+ |pay
7440
mentMethod|.{{PaymentMethodData/supportedMethods}}.
590+ Rethrow any exceptions.
617591 </ p >
618- </ li >
619- < li >
620592 < p >
621- Run the < a > steps to validate payment method data </ a > ,
622- if any, from the specification that defines the
623- |paymentMethod|.{{PaymentMethodData/supportedMethods}}
624- on |object|. Rethrow any exceptions .
593+ If required by the specification that defines the
594+ |paymentMethod|.{{PaymentMethodData/supportedMethods}},
595+ validate the members of |idl|. If a member's value is
596+ invalid, throw a {{TypeError}} .
625597 </ p >
626598 < p class ="note ">
627599 These step assures that any IDL type conversion and
@@ -883,11 +855,10 @@ <h2>
883855 "ECMASCRIPT#sec-json.parse "> JSON-parsing</ a > the second element
884856 in the |paymentMethod| tuple.
885857 </ li >
886- < li > If the specification that defines the |identifier| specifies
887- an [=Payment Method/additional data type=], then [=converted to
888- an IDL value|convert=] |data| to an IDL value of that type.
889- Otherwise, [=converted to an IDL value|convert=] |data| to
890- {{object}}.
858+ < li > If required by the specification that defines the
859+ |identifier|, then [=converted to an IDL value|convert=] |data|
860+ to an IDL value of the type specified there. Otherwise,
861+ [=converted to an IDL value|convert=] to {{object}}.
891862 </ li >
892863 < li > If conversion results in an < a > exception</ a > |error|:
893864 < ol >
0 commit comments