Skip to content

Allow web-based payment handlers to reject with PaymentHandlerAppError - #432

Draft
stephenmcgruer wants to merge 1 commit into
gh-pagesfrom
smcgruer-structured-errors
Draft

stephenmcgruer wants to merge 1 commit into
gh-pagesfrom
smcgruer-structured-errors

Conversation

@stephenmcgruer

@stephenmcgruer stephenmcgruer commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Update the Payment App Failure Algorithm so that rejecting the PaymentRequestEvent.respondWith() promise with a PaymentHandlerAppError invokes the 'Payment handler indicates an internal error algorithm' with that error. Also add privacy guidance for PaymentHandlerAppError when no payment handler window is opened.

See w3c/payment-request#1076

closes #???

The following tasks have been completed:

  • web platform tests (link)
  • MDN Docs added (link)

Implementation commitment:

  • Safari (link to issue)
  • Chrome (link to issue)
  • Firefox (link to issue)
  • Edge (public signal)

Preview | Diff

Update the Payment App Failure Algorithm so that rejecting the
PaymentRequestEvent.respondWith() promise with a PaymentHandlerAppError
invokes the 'Payment handler indicates an internal error algorithm' with
that error. Also add privacy guidance for PaymentHandlerAppError when
no payment handler window is opened.

See w3c/payment-request#1076

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant