{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/webpayments-methods-card/issues/20","repository_url":"https://api.github.com/repos/w3c/webpayments-methods-card","labels_url":"https://api.github.com/repos/w3c/webpayments-methods-card/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/w3c/webpayments-methods-card/issues/20/comments","events_url":"https://api.github.com/repos/w3c/webpayments-methods-card/issues/20/events","html_url":"https://github.com/w3c/webpayments-methods-card/issues/20","id":191282125,"number":20,"title":"Behavior when method-specific data is invalid","user":{"login":"rsolomakhin","id":1028633,"avatar_url":"https://avatars.githubusercontent.com/u/1028633?v=3","gravatar_id":"","url":"https://api.github.com/users/rsolomakhin","html_url":"https://github.com/rsolomakhin","followers_url":"https://api.github.com/users/rsolomakhin/followers","following_url":"https://api.github.com/users/rsolomakhin/following{/other_user}","gists_url":"https://api.github.com/users/rsolomakhin/gists{/gist_id}","starred_url":"https://api.github.com/users/rsolomakhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsolomakhin/subscriptions","organizations_url":"https://api.github.com/users/rsolomakhin/orgs","repos_url":"https://api.github.com/users/rsolomakhin/repos","events_url":"https://api.github.com/users/rsolomakhin/events{/privacy}","received_events_url":"https://api.github.com/users/rsolomakhin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-23T14:18:02Z","updated_at":"2016-12-01T00:29:14Z","closed_at":null,"body":"If someone writes this:\r\n```javascript\r\nnew PaymentRequest(\r\n    [{supportedMethods: [\"basic-card\"], data: {supportedNetworks: 0}}],\r\n    shoppingCart);\r\n```\r\nShould the constructor throw, because `supportedNetworks` must be a list according to this spec? The alternative is to pass this information to the payment app as-is and let it decide what to do with it. If we pass to the app, it would be great to clearly define the expected behavior for invalid method-specific data."},"comment":{"url":"https://api.github.com/repos/w3c/webpayments-methods-card/issues/comments/264041821","html_url":"https://github.com/w3c/webpayments-methods-card/issues/20#issuecomment-264041821","issue_url":"https://api.github.com/repos/w3c/webpayments-methods-card/issues/20","id":264041821,"user":{"login":"zkoch","id":130235,"avatar_url":"https://avatars.githubusercontent.com/u/130235?v=3","gravatar_id":"","url":"https://api.github.com/users/zkoch","html_url":"https://github.com/zkoch","followers_url":"https://api.github.com/users/zkoch/followers","following_url":"https://api.github.com/users/zkoch/following{/other_user}","gists_url":"https://api.github.com/users/zkoch/gists{/gist_id}","starred_url":"https://api.github.com/users/zkoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zkoch/subscriptions","organizations_url":"https://api.github.com/users/zkoch/orgs","repos_url":"https://api.github.com/users/zkoch/repos","events_url":"https://api.github.com/users/zkoch/events{/privacy}","received_events_url":"https://api.github.com/users/zkoch/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T00:29:14Z","updated_at":"2016-12-01T00:29:14Z","body":"Seems like throwing is the right call to me. We should probably clearly define that behavior. @adrianba thoughts?"}}
{"actor":{"display_login":"zkoch"}}