Re: [w3c/payment-request] Should PaymentItems have a type? (#163)

> @marcoscaceres is this requirement more about a way to group the displayItems into list items and sub-total items as opposed to having special types for displayItems?

No, it's more about classifying display items by type and letting the UA do whatever it wants with that information.

> Could we get away with a flag on a displayItem that indicates it should be part of the sub-total group?

I'm not a big fan of this because it makes an assumption about how the data would be displayed. I'd rather say "x is 'tax'", and then the UA can be like "oh, that's 'tax', I'll put that with the tax thingies down the bottom".

> I worry we are getting into territory where we are inferring UI behaviour/layout

Me too :) Hence just saying this is "tax" and letting the UA figure it out. 
 

-- 
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-request/issues/163#issuecomment-349534192

Received on Wednesday, 6 December 2017 05:01:11 UTC