{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/webpayments/issues/40","labels_url":"https://api.github.com/repos/w3c/webpayments/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/w3c/webpayments/issues/40/comments","events_url":"https://api.github.com/repos/w3c/webpayments/issues/40/events","html_url":"https://github.com/w3c/webpayments/issues/40","id":122435874,"number":40,"title":"Expression of monetary amounts","user":{"login":"msporny","id":108611,"avatar_url":"https://avatars.githubusercontent.com/u/108611?v=3","gravatar_id":"","url":"https://api.github.com/users/msporny","html_url":"https://github.com/msporny","followers_url":"https://api.github.com/users/msporny/followers","following_url":"https://api.github.com/users/msporny/following{/other_user}","gists_url":"https://api.github.com/users/msporny/gists{/gist_id}","starred_url":"https://api.github.com/users/msporny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msporny/subscriptions","organizations_url":"https://api.github.com/users/msporny/orgs","repos_url":"https://api.github.com/users/msporny/repos","events_url":"https://api.github.com/users/msporny/events{/privacy}","received_events_url":"https://api.github.com/users/msporny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-16T06:03:48Z","updated_at":"2015-12-16T14:36:11Z","closed_at":null,"body":"The paymentRequest API currently suggests that we express monetary amounts using a mantissa and exponent: \r\n\r\nhttp://wicg.github.io/paymentrequest/specs/paymentrequest.html#currencyamount\r\n```javascript\r\n\"amount\": { \"currencyCode\": \"USD\", \"mantissa\": 5500, \"exponent\": 2 }, // US$55.00\r\n```\r\n\r\nThe Web Payments CG Browser API suggests that we use strings for the amounts with a currency code:\r\n\r\nhttp://wicg.github.io/web-payments-browser-api/#processing-a-payment-request\r\n```javascript\r\ntransfer: {\r\n  amount: '4.35',\r\n  currency: 'USD'\r\n},\r\n```\r\n\r\nHow should monetary amounts be expressed in the API?"},"comment":{"url":"https://api.github.com/repos/w3c/webpayments/issues/comments/165127490","html_url":"https://github.com/w3c/webpayments/issues/40#issuecomment-165127490","issue_url":"https://api.github.com/repos/w3c/webpayments/issues/40","id":165127490,"user":{"login":"adrianhopebailie","id":49902,"avatar_url":"https://avatars.githubusercontent.com/u/49902?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianhopebailie","html_url":"https://github.com/adrianhopebailie","followers_url":"https://api.github.com/users/adrianhopebailie/followers","following_url":"https://api.github.com/users/adrianhopebailie/following{/other_user}","gists_url":"https://api.github.com/users/adrianhopebailie/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianhopebailie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianhopebailie/subscriptions","organizations_url":"https://api.github.com/users/adrianhopebailie/orgs","repos_url":"https://api.github.com/users/adrianhopebailie/repos","events_url":"https://api.github.com/users/adrianhopebailie/events{/privacy}","received_events_url":"https://api.github.com/users/adrianhopebailie/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T14:36:11Z","updated_at":"2015-12-16T14:36:11Z","body":"There should be enough payment related APIs already in wide use for us to establish the *\"standard\"* way of expressing amounts. Any volunteers to do this research and come back with findings?"}}