{"action":"opened","issue":{"url":"https://api.github.com/repos/tgezginis/turkish_bin_numbers/issues/1","repository_url":"https://api.github.com/repos/tgezginis/turkish_bin_numbers","labels_url":"https://api.github.com/repos/tgezginis/turkish_bin_numbers/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tgezginis/turkish_bin_numbers/issues/1/comments","events_url":"https://api.github.com/repos/tgezginis/turkish_bin_numbers/issues/1/events","html_url":"https://github.com/tgezginis/turkish_bin_numbers/issues/1","id":184471131,"number":1,"title":"Detect Card Type Sorunu","user":{"login":"arghan","id":2471584,"avatar_url":"https://avatars.githubusercontent.com/u/2471584?v=3","gravatar_id":"","url":"https://api.github.com/users/arghan","html_url":"https://github.com/arghan","followers_url":"https://api.github.com/users/arghan/followers","following_url":"https://api.github.com/users/arghan/following{/other_user}","gists_url":"https://api.github.com/users/arghan/gists{/gist_id}","starred_url":"https://api.github.com/users/arghan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arghan/subscriptions","organizations_url":"https://api.github.com/users/arghan/orgs","repos_url":"https://api.github.com/users/arghan/repos","events_url":"https://api.github.com/users/arghan/events{/privacy}","received_events_url":"https://api.github.com/users/arghan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-21T12:14:53Z","updated_at":"2016-10-21T12:14:53Z","closed_at":null,"body":"detect_card_type(bin) metoduna gönderdiğimiz kredi kartının ilk 6 hanesi çoğu kart için çalışmıyor. \r\nörnek : 540668 master card olmasına rağmen null dönüyor. \r\n\r\nBu kod biraz yetersiz geldi bana : \r\n\r\nbin = bin.to_s\r\n    case\r\n    when bin =~ /^(34|37)/\r\n      return \"American Express\"\r\n    when bin =~ /^4/\r\n      return \"Visa\"\r\n    when bin =~ /^(50|55)/\r\n      return \"MasterCard\"\r\n    when bin =~ /^(55018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)/\r\n      return \"Maestro\"\r\n    else\r\n      return nil\r\n    end"}}
{"actor":{"display_login":"arghan"}}