adrianhopebailie / web-monetization

Web Monetization Explainer and Specification for submission to the WICG
Other
18 stars 3 forks source link

Indicate failure reasons from WM Sender #13

Closed adrianhopebailie closed 5 years ago

adrianhopebailie commented 5 years ago

Do we need to indicate WHY a payment failed if it did?

Maybe an error code?

Can the Payment Handler simply respondWith() an ILP reject packet and let the browser infer the failure reason from the code?

A possible failure case is that the browser requests the sender to send in a currency it can't convert from.

  1. The browser calculates a monetization rate for a site and invokes the sender requesting it make a payment of USD 0.0004
  2. The user's account at the sender is denominated in EUR
  3. The sender determines that it can't calculate the appropriate amount to send in EUR

Is F03 - Invalid Amount error appropriate here?

adrianhopebailie commented 5 years ago

Kamino closed and cloned this issue to interledger/webmonetization.org