File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -663,6 +663,32 @@ <h2>
663
663
< var > paymentMethod</ var > .< a data-lt ="PaymentMethodData.data "> data</ a >
664
664
into a string. Rethrow any exceptions.
665
665
</ li >
666
+ < li > If < var > serializedData</ var > is not null, and if required
667
+ by the specification that defines the
668
+ < var > paymentMethod</ var > .< a > supportedMethods</ a > :
669
+ < ol >
670
+ < li > Let < var > object</ var > be the result of
671
+ < a data-cite ="ECMASCRIPT#sec-json.parse "> JSON-parsing</ a >
672
+ < var > serializedData</ var > .
673
+ </ li >
674
+ < li >
675
+ < p >
676
+ < a data-lt ="converting "> Convert</ a > < var > object</ var >
677
+ to an IDL value of the type specified by the
678
+ specification that defines the
679
+ < var > paymentMethod</ var > .< a > supportedMethods</ a >
680
+ (e.g., a < a data-cite =
681
+ "payment-method-basic-card#dom-basiccardrequest "> BasicCardRequest</ a >
682
+ in the case of [[?payment-method-basic-card]]).
683
+ Rethrow any exceptions.
684
+ </ p >
685
+ < p class ="note ">
686
+ This step assures that any IDL type conversion errors
687
+ are caught as early as possible.
688
+ </ p >
689
+ </ li >
690
+ </ ol >
691
+ </ li >
666
692
< li > Add the tuple (< var > paymentMethod</ var > .< a data-lt =
667
693
"PaymentMethodData.supportedMethods "> supportedMethods</ a > ,
668
694
< var > serializedData</ var > ) to
You can’t perform that action at this time.
0 commit comments