@nickjshearer and @halindrome :
I asked the following because I wonder if we are trying to enforce business rules in the browser API which should be the domain of the payment apps:
> I wonder why we would enforce that that the total can't be negative?
Any restrictions we place on the data that can be passed in the API implies we know enough about the uses of the API to do so. As @kirkalx points out this may not make sense for some payment methods but that doesn't mean it might not make sense for others.
I don't believe it is the job of the browser to enforce this business rule. If a payment method declares that it supports negative amounts and they will be interpreted a certain way then why should the browser prevent this?
---
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/119#issuecomment-214388136