w3c / payment-request

Payment Request API
https://www.w3.org/TR/payment-request/
Other
489 stars 135 forks source link

Editorial: error is not well introduced #840

Closed rvm4 closed 5 years ago

rvm4 commented 5 years ago

The description of "error" in 6.3 is not very clear. Though, it is given greater clarity later on. Is it accurate to describe this as a global error message or a fallback error message when a more specific error field is not appropriate?

marcoscaceres commented 5 years ago

Is it accurate to describe this as a global error message or a fallback error message when a more specific error field is not appropriate?

This was a bit of a design flaw... the error member there is specific for when when there is no valid shipping address. So maybe it should read (flipping what is there):

A human-readable string used to explain why goods cannot be shipped to the chosen shipping address, or any other reason why no shipping options are available.

marcoscaceres commented 5 years ago

Sent: https://github.com/w3c/payment-request/pull/845