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

Ship Mode Update for PO BOX #888

Open
ForTheJim opened this issue Dec 10, 2019 · 4 comments · Fixed by #955
Open

Ship Mode Update for PO BOX #888

ForTheJim opened this issue Dec 10, 2019 · 4 comments · Fixed by #955

Comments

@ForTheJim
Copy link

Here's an issue I am running into with Payment Request in regards to PO Boxes and Ship Modes.

We have 3 Standard Ship Modes that user can select from:
Overnight - $30
Express - $18
Standard - Free

We can calculate shipping modes based on State and update accordingly.

User in this case selects Standard Ship Mode.

For users with a PO Box as shipping address, we only offer one ship mode which is unique to PO Box.

Unique Shipping - $25

The change here would affect total cost of product with shipping and would need to notify user that ship mode has been updated to reflect PO Box address.

We have limited ship modes for users with PO BOX as shipping address. But, since addressLine is not exposed until user commits to payment, how would Payment Request handle this case?

Would we use the retry method and throw an error and advise user to select the updated ship mode?
https://www.w3.org/TR/payment-request/#retry-method

cc @rsolomakhin

@rsolomakhin
Copy link
Collaborator

Hi @ForTheJim, would your use case be address if the redacted shipping address had an 'isPostOfficeBox` boolean?

@ForTheJim
Copy link
Author

ForTheJim commented Dec 10, 2019

Hi @rsolomakhin,

If there was a 'isPostOfficeBox' boolean, it would help to resolve this use case since that could then be passed server-side and correct ship mode could then be returned 👍

@marcoscaceres
Copy link
Member

Marked as future candidate feature. We should probably discuss at the upcoming face-to-face (if not before).

@ForTheJim:

Would we use the retry method and throw an error and advise user to select the updated ship mode?

Yes, you would need to verify the address with some kind of address verification service, and then .retry() with the new shipping option.

@ianbjacobs
Copy link
Collaborator

This issue was raised in Payment Request, but closed once we removed addresses from that API. We anticipate adding addresses back to the specification and so are re-opening this issue proactively.

@ianbjacobs ianbjacobs reopened this Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants