- From: Jinho Bang <notifications@github.com>
- Date: Thu, 13 Sep 2018 00:25:31 -0700
- To: w3c/payment-handler <payment-handler@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 13 September 2018 07:25:53 UTC
romandev commented on this pull request. Overall looks good to me. I left minor comments for API shape. > @@ -1169,10 +1226,12 @@ <h2> readonly attribute USVString paymentRequestOrigin; readonly attribute DOMString paymentRequestId; readonly attribute FrozenArray<PaymentMethodData> methodData; - readonly attribute object total; + readonly attribute PaymentCurrencyAmount total; nit: This should be `object` type. According to the WebIDL spec[1], Dictionaries must not be used as the type of an attribute or constant. [1] https://heycam.github.io/webidl/#idl-dictionary > Promise<WindowClient?> openWindow(USVString url); + Promise<PaymentMethodChangeResponse?> changePaymentMethod(DOMString methodName, object? methodDetails); nit: I think that making the second parameter as `optional` would be better. ```webidl Promise<PaymentMethodChangeResponse?> changePaymentMethod(DOMString methodName, optional object? methodDetails = null); ``` -- 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/pull/318#pullrequestreview-154920689
Received on Thursday, 13 September 2018 07:25:53 UTC