|
3125 | 3125 | <li>Set <var>responsevar>.<a>[[\retryPromise]]a> to
|
3126 | 3126 | <var>retryPromisevar>.
|
3127 | 3127 | li>
|
3128 |
| - <li data-link-for="PaymentValidationErrors" data-tests= |
3129 |
| - "PaymentValidationErrors/retry-shows-error-member-manual.https.html"> |
3130 |
| - If <var>errorFieldsvar>'s <a>paymentMethoda> member was passed, |
3131 |
| - and if required by the specification that defines |
3132 |
| - <var>responsevar>'s <a>payment methoda>, then <a data-cite= |
3133 |
| - "WEBIDL#dfn-convert-ecmascript-to-idl-value">converta> |
3134 |
| - <var>errorFieldsvar> <a>paymentMethoda> to an IDL value of the |
3135 |
| - type specified there. Otherwise, <a data-cite= |
3136 |
| - "WEBIDL#dfn-convert-ecmascript-to-idl-value">converta> to |
3137 |
| - <a data-cite="WEBIDL#idl-object">objecta>. |
3138 |
| - li> |
3139 |
| - <li>If conversion results in a <a data-cite= |
3140 |
| - "WEBIDL#dfn-exception">exceptiona> <var>errorvar>: |
| 3128 | + <li>If <var>errorFieldsvar> was passed: |
3141 | 3129 | <ol>
|
3142 |
| - <li>Reject <var>retryPromisevar> with <var>errorvar>. |
| 3130 | + <li>Optionally, show a warning in the developer console if any of |
| 3131 | + the following are true: |
| 3132 | + <ol> |
| 3133 | + <li> |
| 3134 | + <var>requestvar>.<a>[[\options]]a>["<a data-link-for= |
| 3135 | + "PaymentOptions">requestPayerNamea>"] is false, and |
| 3136 | + <var>errorFieldsvar>["<a data-link-for= |
| 3137 | + "PaymentValidationErrors">payera>"]["<a data-link-for= |
| 3138 | + "PayerErrors">namea>"] is present. |
| 3139 | + li> |
| 3140 | + <li> |
| 3141 | + <var>requestvar>.<a>[[\options]]a>["<a data-link-for= |
| 3142 | + "PaymentOptions">requestPayerEmaila>"] is false, and |
| 3143 | + <var>errorFieldsvar>["<a data-link-for= |
| 3144 | + "PaymentValidationErrors">payera>"]["<a data-link-for= |
| 3145 | + "PayerErrors">emaila>"] is present. |
| 3146 | + li> |
| 3147 | + <li> |
| 3148 | + <var>requestvar>.<a>[[\options]]a>["<a data-link-for= |
| 3149 | + "PaymentOptions">requestPayerPhonea>"] is false, and |
| 3150 | + <var>errorFieldsvar>["<a data-link-for= |
| 3151 | + "PaymentValidationErrors">payera>"]["<a data-link-for= |
| 3152 | + "PayerErrors">phonea>"] is present. |
| 3153 | + li> |
| 3154 | + <li> |
| 3155 | + <var>requestvar>.<a>[[\options]]a>["<a data-link-for= |
| 3156 | + "PaymentOptions">requestShippinga>"] is false, and |
| 3157 | + <var>errorFieldsvar>["<a data-link-for= |
| 3158 | + "PaymentValidationErrors">shippingAddressa>"] is present. |
| 3159 | + li> |
| 3160 | + ol> |
3143 | 3161 | li>
|
3144 |
| - <li>Set <a>user agenta>'s <a>payment request is showinga> |
3145 |
| - boolean to false. |
| 3162 | + <li data-link-for="PaymentValidationErrors" data-tests= |
| 3163 | + "PaymentValidationErrors/retry-shows-error-member-manual.https.html"> |
| 3164 | + If <var>errorFieldsvar>["<a>paymentMethoda>] member was |
| 3165 | + passed, and if required by the specification that defines |
| 3166 | + <var>responsevar>'s <a>payment methoda>, then <a data-cite= |
| 3167 | + "WEBIDL#dfn-convert-ecmascript-to-idl-value">converta> |
| 3168 | + <var>errorFieldsvar>'s <a>paymentMethoda> member to an IDL |
| 3169 | + value of the type specified there. Otherwise, <a data-cite= |
| 3170 | + "WEBIDL#dfn-convert-ecmascript-to-idl-value">converta> to |
| 3171 | + <a data-cite="WEBIDL#idl-object">objecta>. |
3146 | 3172 | li>
|
3147 |
| - <li>Return. |
| 3173 | + <li>If conversion results in a <a data-cite= |
| 3174 | + "WEBIDL#dfn-exception">exceptiona> <var>errorvar>: |
| 3175 | + <ol> |
| 3176 | + <li>Reject <var>retryPromisevar> with <var>errorvar>. |
| 3177 | + li> |
| 3178 | + <li>Set <a>user agenta>'s <a>payment request is showinga> |
| 3179 | + boolean to false. |
| 3180 | + li> |
| 3181 | + <li>Return. |
| 3182 | + li> |
| 3183 | + ol> |
3148 | 3184 | li>
|
3149 | 3185 | ol>
|
3150 | 3186 | li>
|
|
0 commit comments