[w3c/payment-handler] Rename canmakepayment event to hasenrolledinstrument event (#364)

Following the discussion at the recent F2F [1], there was broad agreement that we should adopt the proposed changes [2] to clarify the behavior of payment handlers with respect to `canMakePayment()` and `hasEnrolledInstrument()`.

Specifically:
- PaymentRequest.canMakePayment() will no longer trigger "canmakepayment" event inside a payment handler
- Rename current "canmakepayment" event to "hasenrolledinstrument" event
- PaymentRequest.hasEnrolledInstrument() will trigger the "hasenrolledinstrument" event

[1] https://www.w3.org/2020/03/30-wpwg-minutes.html#item02
[2] https://docs.google.com/document/d/1C_xH-6sJb9UedrvifsvqS_2k_We0IlPSfWFo8Kg54ps/edit

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-handler/issues/364

Received on Tuesday, 14 April 2020 23:20:43 UTC