You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PaymentRequest's show() method is documented as taking a promise, while PaymentRequestUpdateEvent's updateWith() method is documented as taking an object. Actually, the two both accept the same kind of parameter, and because of the way that promises work, one can pass either an object directly or a promise that resolves to an object.
What did you expect to see?
A consistent style that makes it clear what can be used as the argument.
Promises as parameters is not very common on the web platform, but there are other cases that also have a mix of styles:
What page(s) did you find the problem on?
Compare the descriptions of parameters here:
https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequest/show
https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent/updateWith
What is the problem?
PaymentRequest
'sshow()
method is documented as taking a promise, whilePaymentRequestUpdateEvent
'supdateWith()
method is documented as taking an object. Actually, the two both accept the same kind of parameter, and because of the way that promises work, one can pass either an object directly or a promise that resolves to an object.What did you expect to see?
A consistent style that makes it clear what can be used as the argument.
Promises as parameters is not very common on the web platform, but there are other cases that also have a mix of styles:
PaymentResponse
interface instead of thePaymentHandlerResponse
dictionary)Response
or aPromise
that resolves to aResponse
")Response
object or a promise that will fulfill with one")The text was updated successfully, but these errors were encountered: