{"action":"closed","issue":{"url":"https://api.github.com/repos/stripe/stripe-ios/issues/1007","repository_url":"https://api.github.com/repos/stripe/stripe-ios","labels_url":"https://api.github.com/repos/stripe/stripe-ios/issues/1007/labels{/name}","comments_url":"https://api.github.com/repos/stripe/stripe-ios/issues/1007/comments","events_url":"https://api.github.com/repos/stripe/stripe-ios/issues/1007/events","html_url":"https://github.com/stripe/stripe-ios/issues/1007","id":348387860,"node_id":"MDU6SXNzdWUzNDgzODc4NjA=","number":1007,"title":"How to force invalid state on STPPaymentCardTextField when user leaves the textfield","user":{"login":"jlubeck","id":3067603,"node_id":"MDQ6VXNlcjMwNjc2MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/3067603?v=4","gravatar_id":"","url":"https://api.github.com/users/jlubeck","html_url":"https://github.com/jlubeck","followers_url":"https://api.github.com/users/jlubeck/followers","following_url":"https://api.github.com/users/jlubeck/following{/other_user}","gists_url":"https://api.github.com/users/jlubeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jlubeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlubeck/subscriptions","organizations_url":"https://api.github.com/users/jlubeck/orgs","repos_url":"https://api.github.com/users/jlubeck/repos","events_url":"https://api.github.com/users/jlubeck/events{/privacy}","received_events_url":"https://api.github.com/users/jlubeck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"csabol-stripe","id":36750494,"node_id":"MDQ6VXNlcjM2NzUwNDk0","avatar_url":"https://avatars2.githubusercontent.com/u/36750494?v=4","gravatar_id":"","url":"https://api.github.com/users/csabol-stripe","html_url":"https://github.com/csabol-stripe","followers_url":"https://api.github.com/users/csabol-stripe/followers","following_url":"https://api.github.com/users/csabol-stripe/following{/other_user}","gists_url":"https://api.github.com/users/csabol-stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/csabol-stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csabol-stripe/subscriptions","organizations_url":"https://api.github.com/users/csabol-stripe/orgs","repos_url":"https://api.github.com/users/csabol-stripe/repos","events_url":"https://api.github.com/users/csabol-stripe/events{/privacy}","received_events_url":"https://api.github.com/users/csabol-stripe/received_events","type":"User","site_admin":false},"assignees":[{"login":"csabol-stripe","id":36750494,"node_id":"MDQ6VXNlcjM2NzUwNDk0","avatar_url":"https://avatars2.githubusercontent.com/u/36750494?v=4","gravatar_id":"","url":"https://api.github.com/users/csabol-stripe","html_url":"https://github.com/csabol-stripe","followers_url":"https://api.github.com/users/csabol-stripe/followers","following_url":"https://api.github.com/users/csabol-stripe/following{/other_user}","gists_url":"https://api.github.com/users/csabol-stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/csabol-stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csabol-stripe/subscriptions","organizations_url":"https://api.github.com/users/csabol-stripe/orgs","repos_url":"https://api.github.com/users/csabol-stripe/repos","events_url":"https://api.github.com/users/csabol-stripe/events{/privacy}","received_events_url":"https://api.github.com/users/csabol-stripe/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-08-07T16:04:48Z","updated_at":"2018-08-14T18:03:22Z","closed_at":"2018-08-14T18:03:22Z","author_association":"NONE","body":"I'm having some users that for some reason are trying to enter a credit card with 15 digits instead of 16. But the STPPaymentCardTextField doesn't show as red, because the state is Incomplete instead of Invalid.\r\n\r\nI understand that while the user is typing, we don't want to show them an invalid card until they are done typing, but after they leave the field, if the card is invalid, it should turn to invalid, instead of incomplete.\r\n\r\nHopefully you'll agree and make a change for it, but in case you don't, is there a way I can force this state on the field?\r\n\r\nI can see that `isValid` is false on `paymentCardTextFieldDidEndEditing`, so half way there. But I can't find a way to show the invalid state when I see that.\r\n\r\nThank you!"}}
{"actor":{"display_login":"csabol-stripe"}}