Re: [w3c/payment-handler] Specify how to construct PaymentRequestDetailsUpdate from PaymentDetailsUpdate (#376)

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