The following changes are coming to Chrome 76.
Canary: today | Beta: June 13, 2019 | Stable: July 30, 2019
New features enabled by default:
Improved local development: --ignore-certificate-errors flag.
New features available for testing:
Use chrome://flags#enable-web-payments-experimental-features
This Payment Handler API feature allows payment handlers (e.g. Google Pay) to trigger the merchant’s paymentmethodchange event handler. It returns a Promise that resolves to a merchant response with updated price information (e.g. tax recalculation).
Payment handler example:
Merchant example:
Demo: https://rsolomakhin.github.io/pr/apps/pmc/.
Chrome 76 adds a small improvement for developer productivity: if your local development environment uses a self-signed certificate, you can now use the --ignore-certificate-errors command-line flag to make Chrome allow web payments APIs in your development environment.
Visit chrome://flags/#enable-web-payments-experimental-features to enable this feature.
With this change, if merchant’s shippingaddresschange event handler reads the PaymentRequest.shippingAddress attribute, it will notice that the recipient, organization, addressLine and phone fields are now redacted, whereas before Chrome 76, these fields contained valid information. This reduces unnecessary exposure of user’s personal information to the merchant before the user fully commits to the transaction. This brings Chrome in compliance with the spec.