{"action":"created","issue":{"url":"https://api.github.com/repos/Andriy1236/Completed-tasks-for-Kottans.org-Free-Csharp-course-in-Lviv/issues/4","repository_url":"https://api.github.com/repos/Andriy1236/Completed-tasks-for-Kottans.org-Free-Csharp-course-in-Lviv","labels_url":"https://api.github.com/repos/Andriy1236/Completed-tasks-for-Kottans.org-Free-Csharp-course-in-Lviv/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Andriy1236/Completed-tasks-for-Kottans.org-Free-Csharp-course-in-Lviv/issues/4/comments","events_url":"https://api.github.com/repos/Andriy1236/Completed-tasks-for-Kottans.org-Free-Csharp-course-in-Lviv/issues/4/events","html_url":"https://github.com/Andriy1236/Completed-tasks-for-Kottans.org-Free-Csharp-course-in-Lviv/issues/4","id":153455550,"number":4,"title":"Issue with valid card number (according to Luhn) but unknown vendor","user":{"login":"intrueder","id":182339,"avatar_url":"https://avatars.githubusercontent.com/u/182339?v=3","gravatar_id":"","url":"https://api.github.com/users/intrueder","html_url":"https://github.com/intrueder","followers_url":"https://api.github.com/users/intrueder/followers","following_url":"https://api.github.com/users/intrueder/following{/other_user}","gists_url":"https://api.github.com/users/intrueder/gists{/gist_id}","starred_url":"https://api.github.com/users/intrueder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intrueder/subscriptions","organizations_url":"https://api.github.com/users/intrueder/orgs","repos_url":"https://api.github.com/users/intrueder/repos","events_url":"https://api.github.com/users/intrueder/events{/privacy}","received_events_url":"https://api.github.com/users/intrueder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-06T13:52:21Z","updated_at":"2016-05-06T15:30:16Z","closed_at":null,"body":"Vendor for `35301113333000001` has been recognized as `Unknown` (correct, 17 digits instead of 16 for JCB)\r\nI think, that such number should not pass validation, but it passes."},"comment":{"url":"https://api.github.com/repos/Andriy1236/Completed-tasks-for-Kottans.org-Free-Csharp-course-in-Lviv/issues/comments/217474431","html_url":"https://github.com/Andriy1236/Completed-tasks-for-Kottans.org-Free-Csharp-course-in-Lviv/issues/4#issuecomment-217474431","issue_url":"https://api.github.com/repos/Andriy1236/Completed-tasks-for-Kottans.org-Free-Csharp-course-in-Lviv/issues/4","id":217474431,"user":{"login":"Andriy1236","id":14812041,"avatar_url":"https://avatars.githubusercontent.com/u/14812041?v=3","gravatar_id":"","url":"https://api.github.com/users/Andriy1236","html_url":"https://github.com/Andriy1236","followers_url":"https://api.github.com/users/Andriy1236/followers","following_url":"https://api.github.com/users/Andriy1236/following{/other_user}","gists_url":"https://api.github.com/users/Andriy1236/gists{/gist_id}","starred_url":"https://api.github.com/users/Andriy1236/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andriy1236/subscriptions","organizations_url":"https://api.github.com/users/Andriy1236/orgs","repos_url":"https://api.github.com/users/Andriy1236/repos","events_url":"https://api.github.com/users/Andriy1236/events{/privacy}","received_events_url":"https://api.github.com/users/Andriy1236/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T15:30:16Z","updated_at":"2016-05-06T15:30:16Z","body":"Sorry, but why you expect false? \r\nIn IsCreditCardNumberValid:\r\n 1)reverse input data.\r\n 2)all even numbers i * 2.\r\n 3)if some  even number >9 i add 2 numbers(number = 10 and 10 > 9 and number = 1+0)\r\n 4)I add all numbers  in lambda (Sum(x => x)  and  check result  (Sum(x => x) % 10 == 0))\r\n if  Sum(x => x) % 10 is 0  return true else false\r\n\r\nStep by step with example:\r\nwe have 35301113333000001\r\n1)reverse = 10000033331110353\r\n2) *2 all even numbers =  1,0,0,0,0,0,3,6,3,6,1,2,1,0,3,10,3\r\n3)we can see 10. 10 >9, that's why our number 1+0=1\r\n4)finaly we have 1,0,0,0,0,0,3,6,3,6,1,2,1,0,3,1,3\r\n5)we add all numbers 1+3+6+3+6+1+2+1+3+1+3 = 30\r\n6)30%10 = 0  that's why true\r\n\r\nprogram understand that our example is valid but it don't know what type of vendor has our example.\r\nMaybe my Luhn algorithm is wrong???\r\n"}}