- From: Sahel Sharify <notifications@github.com>
- Date: Fri, 17 Jul 2020 09:55:51 -0700
- To: w3c/payment-handler <payment-handler@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 17 July 2020 16:56:03 UTC
The reason that both "PaymentDetailsUpdate" and "PaymentRequestDetailsUpdate" dictionaries exist is that the two dictionaries have different fields; The former inherits displayItems[1] from "PaymentDetailsBase" dictionary while displayItems is redacted in the latter (i.e. Payment handlers do not recieve displayItems). Another difference between the two dictionaries is the type of "total" field: "PaymentItem" vs "PaymentCurrencyAmount". Again Payment Handlers get the redacted version of the total. The third and last difference between the two is that "payerError"[2] is redacted from "PaymentRequestDetailsUpdate" since the "payerdetailchange"[3] is not implemented for Payment Handlers. [1] https://www.w3.org/TR/payment-request/#dom-paymentdetailsbase-displayitems [2] https://www.w3.org/TR/payment-request/#dom-paymentdetailsupdate-payererrors [3] https://www.w3.org/TR/payment-request/#summary -- 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/376#issuecomment-660222235
Received on Friday, 17 July 2020 16:56:03 UTC