Intent to implement: PaymentMethodChange event

36 views
Skip to first unread message

Jinho Bang

unread,
Sep 14, 2018, 1:28:17 PM9/14/18
to blink-dev

Contact emails

jinho...@samsung.com, rou...@chromium.org


Design doc/Spec

https://w3c.github.io/payment-request/#paymentmethodchangeevent-interface


Summary

The PaymentRequest event handler onpaymentmethodchange is invoked when the paymentmethodchange is fired, indicating that the user has changed payment methods within a given payment handler.


Motivation

The event can be useful when merchant re-calculates a new total value with method details. For example, merchant can calculate TAX by reading billing address information in the event.


Risks

Interoperability and Compatibility

We will implement this feature behind runtime flag for now. So, the risks are very low.


Edge: No signals

Firefox: In development

Safari: Shipped

Web developers: No signals


Ergonomics

N/A


Activation

N/A


Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes (except Android WebView; The PaymentRequest API doesn’t support in WebView.)


Link to entry on the feature dashboard

https://www.chromestatus.com/feature/4924351321210880


Requesting approval to ship?

No


Reply all
Reply to author
Forward
0 new messages