[w3c/browser-payment-api] Support for negative amounts (#119)

https://github.com/w3c/browser-payment-api/pull/101 changed the formatting rules for amounts so that the value is not signed (per the resolution of the group at https://github.com/w3c/webpayments/issues/57).

Part of this PR is being reverted to reflect the proposal by the editors to use signed numbers as the mechanism for indicating negative amounts and/or refunds.

PR #111 proposes an alternative mechanism for annotating line items such that the flow of funds (debit or credit) is defined as an attribute of the PaymentItem. However, some commentors have suggested that the TramsactionType of a payment request should be defined at a global level for the request and not per line item so this PR needs to be tweaked and further discussed before it can be merged.

The motivation for using such a mechanism (as opposed to signed numbers) is that it conforms to financial industry norms and existing payment messaging standards like ISO20022 and ISO8583.

---
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/browser-payment-api/issues/119

Received on Monday, 4 April 2016 08:05:30 UTC