w3c / payment-handler

Payment Handler API
https://w3c.github.io/payment-handler/
Other
74 stars 42 forks source link

Remove PaymentInstruments API #409

Closed rsolomakhin closed 1 year ago

rsolomakhin commented 1 year ago

PaymentInstruments is the Web API that backs non-JIT install of payment apps. It was designed with the assumption that the browser would store the actual payment instrument details, which has not turned out to be true, and has some privacy leaks. This patch removes the ability to register a payment handler via paymentManager.instruments API. Only just-in-time installation is supported from now on.

Chrome tracking bug: https://crbug.com/1327265 Chrome status: https://chromestatus.com/feature/5099285054488576

Overview of changes in the patch:

Closes: https://github.com/w3c/payment-handler/issues/371 Closes: https://github.com/w3c/payment-handler/issues/381


Preview | Diff

rsolomakhin commented 1 year ago

@ianbjacobs & @stephenmcgruer: Please take a look.

ianbjacobs commented 1 year ago

@rsolomakhin, one observation is that removing the PaymentInstruments interface should close a couple of other issues, namely #371 and maybe #381.

rsolomakhin commented 1 year ago

@rsolomakhin, one observation is that removing the PaymentInstruments interface should close a couple of other issues, namely #371 and maybe #381.

Good point! I've added these to the description of the pull request.