-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Fix broken links in Payment API #31526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
wbamberg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @skyclouds2001 !
It's important that we explain the syntax of dictionary objects, even if we don't have a separate page for them.
Also it looks like:
- the shipping options were removed (in w3c/payment-request#955 I think)
- we are referring to
PaymenrDetailsModifierin a few places and therefore should probably have a dictionary page for it.
files/en-us/web/api/paymentrequest/merchantvalidation_event/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/paymentrequest/paymentmethodchange_event/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/paymentrequest/paymentmethodchange_event/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/paymentrequestevent/changepaymentmethod/index.md
Outdated
Show resolved
Hide resolved
…f PaymentRequest.show & PaymentRequestUpdateEvent.updateWith
…ns` of PaymentRequest.show & PaymentRequestUpdateEvent.updateWith
|
Yes, this page is a complex one. The general rule about dictionaries is that:
We do sometimes make exceptions:
The difficulty on this API is that some of these dictionaries are being phased out (non-standard or deprecated) but have not been removed from the implementation. This is a reason why this has not been cleaned before. |
teoli2003
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two sentences were not clear to me (it wasn't an extensive review).
files/en-us/web/api/paymentrequestupdateevent/updatewith/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Jean-Yves Perrier <[email protected]>
Co-authored-by: Jean-Yves Perrier <[email protected]>
files/en-us/web/api/paymentrequest/paymentmethodchange_event/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/paymentrequest/paymentmethodchange_event/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/paymentrequestevent/changepaymentmethod/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/paymentrequestupdateevent/updatewith/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: wbamberg <[email protected]>
files/en-us/web/api/paymentrequestevent/changepaymentmethod/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/paymentrequestupdateevent/updatewith/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/paymentrequestevent/changepaymentmethod/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/paymentrequestupdateevent/updatewith/index.md
Outdated
Show resolved
Hide resolved
wbamberg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thank you!
Description
updateWith()method is defined onPaymentRequestUpdateEventandPaymentMethodChangeEventsimply inherit this method fromPaymentRequestUpdateEventPaymentInstrumentis a non-standard dictionary and hasn't its own documentation, so remove its mentionpayerdetailchangeevent is fired onPaymentResponserather thenPaymentRequestPaymentShippingOptionis a non-standard dictionary and hasn't its own documentationPaymentDetailsModifieris a dictionary and hasn't its own documentation, so add for its detailAddressErrorsis a non-standard dictionary and hasn't its own documentationretry()andcomplete()methods are onPaymentResponsejust removes these linksMotivation
Additional details
Related issues and pull requests