w3c / payment-request

Payment Request API
https://www.w3.org/TR/payment-request/
Other
489 stars 135 forks source link

Should the PaymentRequest ID be passed to canMakePayment? #760

Open rvm4 opened 6 years ago

rvm4 commented 6 years ago

While experimenting with payment handlers we have found the desire to do waterfall logging. In the current specification we have no way to correlate canMakePayment with the payment request event. I can see this being valuable data, should it be provided to the payment handler?

ianbjacobs commented 6 years ago

Hi @rvm4, good question.

Right now PH API does not send the paymentRequestID to the payment handler in canMakePayment; see: https://w3c.github.io/payment-handler/#oncanmakepayment-attribute

It is sent to the payment handler as part of the PaymentRequestEvent.

I would support sending the id through as well. @rsolomakhin?

Ian

rsolomakhin commented 6 years ago

@rvm4 could you describe waterfall logging and how it would benefit from the payment request identifier in CanMakePaymentEvent?