Skip to content
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

Revert "Drop PaymentAddress, shipping + billing address support (#955)" #996

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented Sep 20, 2022

This reverts commit 486c07a.

Bringing back addresses so we can continue to figure out a path forward (given it's now a interop issue)

closes #996

Blocked on:

The following tasks have been completed:

Implementation commitment:

Optional, impact on Payment Handler spec?


Preview | Diff

@marcoscaceres marcoscaceres force-pushed the bring_back_addresses branch 2 times, most recently from 4027a43 to 7bdd13c Compare September 21, 2022 00:15
@ianbjacobs
Copy link
Collaborator

Hi @marcoscaceres,

From recent discussion [1] the expectation is to bring these back as deprecated features. Please don't merge as-is; could you suggest some deprecation text? (Or I can work with you on this next week.)

Ian

[1] https://www.w3.org/2022/09/13-wpwg-minutes.html#t01

@marcoscaceres
Copy link
Member Author

Sorry, I wasn't in the discussion at the F2F, but I don't agree they would be deprecated (we still expect shipping addresses to work, right? users/merchant still ship physical good and the API doesn't provide any other alternatives that would deprecate this feature). I think we should get this back into the spec and then actively work to address the privacy concerns.

@stephenmcgruer
Copy link
Collaborator

Sorry, I wasn't in the discussion at the F2F, but I don't agree they would be deprecated (we still expect shipping addresses to work, right? users/merchant still ship physical good and the API doesn't provide any other alternatives that would deprecate this feature). I think we should get this back into the spec and then actively work to address the privacy concerns.

From the Chrome side, we aren't too bothered by what form the spec text takes (i.e. an addendum, a note, marked deprecated or not), but we are aligned in wanting it back in some form as it is shipping and used today.

We are still investigating on our side to what extent it is used by web developers, and how feasible a deprecation + removal process would be. Hope to have results by end of year on that.

@marcoscaceres
Copy link
Member Author

I'm still at a loss about the deprecation (or designation) without an alternative format for shipping addressed? is there a real incentive to remove shipping address support for some reason? (maybe I missed the memo?)

@ianbjacobs
Copy link
Collaborator

@marcoscaceres, we went through a process to remove the feature. I do not think we should simply re-introduce it. I look forward to discussing as soon as next week.

@marcoscaceres
Copy link
Member Author

I'm happy to add a note saying we will work towards addressing the privacy issues. That should get us back to where we were and allows us to continue involving the feature while also managing any compatibility issues.

@marcoscaceres
Copy link
Member Author

Doing more investigation, I just remembered that PaymentAddress became ContactAddress in the Contact Picker API, so we can drop the whole Physical Addresses section.

The privacy issues remain, but issues with physical addresses are now the concern of Contact Picker API, which, at least procedurally much easier.

@ianbjacobs
Copy link
Collaborator

@marcoscaceres wrote: "I'm happy to add a note saying we will work towards addressing the privacy issues. "

Would something like this work?

The Web Payments Working Group removed support for shipping and billing addresses from the original version of Payment Request API due to privacy issues; see issue 842. In order to provide documentation for implementations that continue to support this capability, the Working Group is now restoring the feature with an expectation of addressing privacy issues. In doing so the Working Group may also make changes to Payment Request API based on the evolution of other APIs (e.g., the Content Picker API).

@marcoscaceres
Copy link
Member Author

Yes, something like that would work.

@marcoscaceres
Copy link
Member Author

Added blockers in the OP.

@dmengelt
Copy link

dmengelt commented Jun 5, 2023

Hi all. How can we proceed with this PR?

@rsolomakhin
Copy link
Collaborator

@stephenmcgruer wrote:

We are still investigating on our side to what extent it is used by web developers, and how feasible a deprecation + removal process would be. Hope to have results by end of year on that.

Our investigations show that a significant portion of web developers are using shipping and contact info, so we are still in favor of bringing this back.

@ianbjacobs
Copy link
Collaborator

Hi all,
I've started a conversation internally to understand how we can proceed with this and other pull requests.

@marcoscaceres
Copy link
Member Author

Brought back the tests web-platform-tests/wpt#44409

@marcoscaceres
Copy link
Member Author

@rsolomakhin, @stephenmcgruer, we might consider some kind of transitional strategy amongst ourselves to check how much potential web compat breakage there could be from switching PaymentAddress to ContactAddress... I don't imagine there will be much, but it's likely we will break at least someone.

@marcoscaceres
Copy link
Member Author

Blocked on #1021

@stephenmcgruer
Copy link
Collaborator

stephenmcgruer commented Feb 7, 2024

@rsolomakhin, @stephenmcgruer, we might consider some kind of transitional strategy amongst ourselves to check how much potential web compat breakage there could be from switching PaymentAddress to ContactAddress... I don't imagine there will be much, but it's likely we will break at least someone.

Hrm, yep, that's a fun one. I'm not sure offhand how we might build a UseCounter (in Chrome) for access to it in a way that matters (e.g., checking typeof) versus doesn't (accessing members). It should be possible, not sure if it'll be worth the effort. We can also do compat searches of GitHub or Web Archive, though I suspect that most checkout code isn't visible in either :(. (https://www.chromium.org/blink/platform-predictability/compat-tools/)

On the Chrome side, we would of course do that change as a deprecation / removal, so there'd at least be a warning period for developers.

index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated
</dd>
</dl>
</section>
<section>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider moving all this to the other spec...

index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
@w3c w3c deleted a comment from rsolomakhin Jun 18, 2024
</p>
<ul>
Copy link
Member Author

@marcoscaceres marcoscaceres Jul 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move to other spec? I think this might be fine though..

Comment on lines +3977 to +3861
When setting the {{PaymentResponse/payerPhone}} value, the user agent
SHOULD format the phone number to adhere to [[E.164]].
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to check if Contact picker handles the formatting....

index.html Outdated Show resolved Hide resolved
@ianbjacobs
Copy link
Collaborator

@marcoscaceres, now that we've published the CRs, what is the fate of this pull request?

@marcoscaceres
Copy link
Member Author

It's ready to merge I believe.

Merge #1027 first, and then hopefully this will show up on TR right away

@stephenmcgruer stephenmcgruer merged commit 0a5afe2 into gh-pages Aug 14, 2024
2 checks passed
@stephenmcgruer stephenmcgruer deleted the bring_back_addresses branch August 14, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants