w3c / w3c/payment-request

Shipping Address Validation - Suggest Alternate Address

Open
#537 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Future Candidate Feature question
Dominant language
HTML
Stars
510
Forks
139
PR merge metrics
No merged PRs in 30d

Description

The scenario I'm trying to address is when a customer enters a shipping address, which fails validation with a shipping service such as FedEx or UPS, but we are able to present the user with a suggested address based on what was provided.

Looking over the API, I only see a way to output an error message to the user explaining that the address was invalid, is there some way we can prompt the user to check whether our alternative address is acceptable to the customer?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Payment Request API surface described in the issue and how shipping-address validation errors are currently exposed. Determine whether the API can represent a suggested alternate address and obtain customer acceptance; done would require a clear API design for that interaction.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
api, payments, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.