Redact address in PaymentRequest.onshippingaddresschange event

Removes fine-grained information from the shipping address before exposing it to the merchant website in ShippingAddressChange event.

PaymentRequest.onshippingaddresschange event is used to communicate the shipping address user has selected as part of PaymentRequest flow to the merchant so they can make adjustments to the payment amounts such as shipping cost and tax. At this point, the user has not fully committed to the transaction, so the principle should be to return as little information as possible. The redaction removes recipient, organization, addressLine and phone number from the shipping address because these are not typically needed for shipping cost and tax computation.

Documentation

Specification

Working draft or equivalent

Status in Chromium

Blink>Payments


Enabled by default (tracking bug) in:

  • Chrome for desktop release 78
  • Chrome for Android release 78

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Shipped
  • No public signals
  • Shipped
  • Positive

Owner

Last updated on 2019-08-12