{"action":"opened","issue":{"url":"https://api.github.com/repos/CyberSource/cybersource-android-sdk/issues/5","repository_url":"https://api.github.com/repos/CyberSource/cybersource-android-sdk","labels_url":"https://api.github.com/repos/CyberSource/cybersource-android-sdk/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/CyberSource/cybersource-android-sdk/issues/5/comments","events_url":"https://api.github.com/repos/CyberSource/cybersource-android-sdk/issues/5/events","html_url":"https://github.com/CyberSource/cybersource-android-sdk/issues/5","id":321087272,"number":5,"title":"MasterCard checker is outdated","user":{"login":"tsaisean","id":4138501,"avatar_url":"https://avatars0.githubusercontent.com/u/4138501?v=4","gravatar_id":"","url":"https://api.github.com/users/tsaisean","html_url":"https://github.com/tsaisean","followers_url":"https://api.github.com/users/tsaisean/followers","following_url":"https://api.github.com/users/tsaisean/following{/other_user}","gists_url":"https://api.github.com/users/tsaisean/gists{/gist_id}","starred_url":"https://api.github.com/users/tsaisean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsaisean/subscriptions","organizations_url":"https://api.github.com/users/tsaisean/orgs","repos_url":"https://api.github.com/users/tsaisean/repos","events_url":"https://api.github.com/users/tsaisean/events{/privacy}","received_events_url":"https://api.github.com/users/tsaisean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-08T08:18:51Z","updated_at":"2018-05-08T08:18:51Z","closed_at":null,"author_association":"NONE","body":"The card start with 2221-2720 is not passing current checker.\r\nCan consider to update the utils. \r\n\r\n```\tprivate static boolean checkIfMasterCard(int size, String value) {\r\n\t\tint firstChars = Integer.parseInt(value.substring(0, 2));\r\n\t\tint firstCharsRules2017 = Integer.parseInt(value.substring(0, 4));\r\n\t\tif (size == 16\r\n\t\t\t\t&& ((firstChars >= 51 && firstChars <= 55)\r\n\t\t\t\t|| (firstCharsRules2017 >= 2221 && firstChars <= 2720))) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}```"}}
{"actor":{"display_login":"tsaisean"}}