← Back to release summary

PaymentRequestEvent.changePaymentMethod()

Category
Miscellaneous
Type
New or changed feature
Status
Enabled by default (Chrome 76)
Intent stage
Start prototyping

WPT details: WPTs are being landed in the same patches as the implementation.

Summary

Enables payment handlers to get the updated total from the merchant in response to a change in payment instrument selected within the payment handler. This fires the PaymentMethodChangeEvent on the merchant website.

Motivation

For example, if the user selects a debit card with a billing address in France, the merchant may need to add value added tax to the total.

Standards & signals

Ecosystem

Docs: https://github.com/w3c/payment-handler/issues/314

Samples: https://rsolomakhin.github.io/pr/apps/pmc/

Explainers: https://github.com/w3c/payment-handler/issues/314

View on chromestatus.com