{"action":"created","comment":{"url":"https://api.github.com/repos/CruGlobal/give-web/pulls/comments/77915686","id":77915686,"diff_hunk":"@@ -0,0 +1,34 @@\n+import angular from 'angular';\n+import template from './payment-method.tpl';\n+\n+class PaymentMethodController{\n+\n+  /* @ngInject */\n+  constructor(){\n+    this.isCollapsed = true;\n+  }\n+\n+  getExpiration() {\n+    return `EXPIRES ${this.model.expiry_month}/${this.model.expiry_year}`;\n+  }\n+\n+  getLastFourDigits(){\n+    let cardNumber = this.model.card_number;\n+    return `ending in ****${cardNumber.substr(cardNumber.length-4,this.model.card_number.length-1)}`;","path":"src/app/profile/payment-methods/payment-method/payment-method.component.js","position":17,"original_position":17,"commit_id":"e264517223f3da1cf56d4a7fea9f00acb5a8e1ea","original_commit_id":"e264517223f3da1cf56d4a7fea9f00acb5a8e1ea","user":{"login":"OzzieOrca","id":756501,"avatar_url":"https://avatars.githubusercontent.com/u/756501?v=3","gravatar_id":"","url":"https://api.github.com/users/OzzieOrca","html_url":"https://github.com/OzzieOrca","followers_url":"https://api.github.com/users/OzzieOrca/followers","following_url":"https://api.github.com/users/OzzieOrca/following{/other_user}","gists_url":"https://api.github.com/users/OzzieOrca/gists{/gist_id}","starred_url":"https://api.github.com/users/OzzieOrca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OzzieOrca/subscriptions","organizations_url":"https://api.github.com/users/OzzieOrca/orgs","repos_url":"https://api.github.com/users/OzzieOrca/repos","events_url":"https://api.github.com/users/OzzieOrca/events{/privacy}","received_events_url":"https://api.github.com/users/OzzieOrca/received_events","type":"User","site_admin":false},"body":"I know you might not have seen this in the api yet but the api should only give you the last 4 digits or already have prefixed a bunch of starts to it. I think I've seen it both ways. If it ever gives you a full number, I'd make that known since that's a security issue. Again I think the `ending in` belongs in the view so it can be translated.","created_at":"2016-09-07T22:24:19Z","updated_at":"2016-09-07T22:24:19Z","html_url":"https://github.com/CruGlobal/give-web/pull/76#discussion_r77915686","pull_request_url":"https://api.github.com/repos/CruGlobal/give-web/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/CruGlobal/give-web/pulls/comments/77915686"},"html":{"href":"https://github.com/CruGlobal/give-web/pull/76#discussion_r77915686"},"pull_request":{"href":"https://api.github.com/repos/CruGlobal/give-web/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/CruGlobal/give-web/pulls/76","id":83342708,"html_url":"https://github.com/CruGlobal/give-web/pull/76","diff_url":"https://github.com/CruGlobal/give-web/pull/76.diff","patch_url":"https://github.com/CruGlobal/give-web/pull/76.patch","issue_url":"https://api.github.com/repos/CruGlobal/give-web/issues/76","number":76,"state":"open","locked":false,"title":"payment methods inside profile","user":{"login":"denlight","id":4358849,"avatar_url":"https://avatars.githubusercontent.com/u/4358849?v=3","gravatar_id":"","url":"https://api.github.com/users/denlight","html_url":"https://github.com/denlight","followers_url":"https://api.github.com/users/denlight/followers","following_url":"https://api.github.com/users/denlight/following{/other_user}","gists_url":"https://api.github.com/users/denlight/gists{/gist_id}","starred_url":"https://api.github.com/users/denlight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denlight/subscriptions","organizations_url":"https://api.github.com/users/denlight/orgs","repos_url":"https://api.github.com/users/denlight/repos","events_url":"https://api.github.com/users/denlight/events{/privacy}","received_events_url":"https://api.github.com/users/denlight/received_events","type":"User","site_admin":false},"body":"task is blocked for now due to a non-functional end-point","created_at":"2016-08-30T20:38:02Z","updated_at":"2016-09-07T22:24:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7b9afeb6e6ecce70cb15fbf4fee66f76ee62d5a","assignee":{"login":"OzzieOrca","id":756501,"avatar_url":"https://avatars.githubusercontent.com/u/756501?v=3","gravatar_id":"","url":"https://api.github.com/users/OzzieOrca","html_url":"https://github.com/OzzieOrca","followers_url":"https://api.github.com/users/OzzieOrca/followers","following_url":"https://api.github.com/users/OzzieOrca/following{/other_user}","gists_url":"https://api.github.com/users/OzzieOrca/gists{/gist_id}","starred_url":"https://api.github.com/users/OzzieOrca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OzzieOrca/subscriptions","organizations_url":"https://api.github.com/users/OzzieOrca/orgs","repos_url":"https://api.github.com/users/OzzieOrca/repos","events_url":"https://api.github.com/users/OzzieOrca/events{/privacy}","received_events_url":"https://api.github.com/users/OzzieOrca/received_events","type":"User","site_admin":false},"assignees":[{"login":"OzzieOrca","id":756501,"avatar_url":"https://avatars.githubusercontent.com/u/756501?v=3","gravatar_id":"","url":"https://api.github.com/users/OzzieOrca","html_url":"https://github.com/OzzieOrca","followers_url":"https://api.github.com/users/OzzieOrca/followers","following_url":"https://api.github.com/users/OzzieOrca/following{/other_user}","gists_url":"https://api.github.com/users/OzzieOrca/gists{/gist_id}","starred_url":"https://api.github.com/users/OzzieOrca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OzzieOrca/subscriptions","organizations_url":"https://api.github.com/users/OzzieOrca/orgs","repos_url":"https://api.github.com/users/OzzieOrca/repos","events_url":"https://api.github.com/users/OzzieOrca/events{/privacy}","received_events_url":"https://api.github.com/users/OzzieOrca/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/CruGlobal/give-web/pulls/76/commits","review_comments_url":"https://api.github.com/repos/CruGlobal/give-web/pulls/76/comments","review_comment_url":"https://api.github.com/repos/CruGlobal/give-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CruGlobal/give-web/issues/76/comments","statuses_url":"https://api.github.com/repos/CruGlobal/give-web/statuses/e264517223f3da1cf56d4a7fea9f00acb5a8e1ea","head":{"label":"CruGlobal:profile-payment-methods","ref":"profile-payment-methods","sha":"e264517223f3da1cf56d4a7fea9f00acb5a8e1ea","user":{"login":"CruGlobal","id":1785912,"avatar_url":"https://avatars.githubusercontent.com/u/1785912?v=3","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"repo":{"id":63185373,"name":"give-web","full_name":"CruGlobal/give-web","owner":{"login":"CruGlobal","id":1785912,"avatar_url":"https://avatars.githubusercontent.com/u/1785912?v=3","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CruGlobal/give-web","description":"Front end Angular components for new give site","fork":false,"url":"https://api.github.com/repos/CruGlobal/give-web","forks_url":"https://api.github.com/repos/CruGlobal/give-web/forks","keys_url":"https://api.github.com/repos/CruGlobal/give-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CruGlobal/give-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CruGlobal/give-web/teams","hooks_url":"https://api.github.com/repos/CruGlobal/give-web/hooks","issue_events_url":"https://api.github.com/repos/CruGlobal/give-web/issues/events{/number}","events_url":"https://api.github.com/repos/CruGlobal/give-web/events","assignees_url":"https://api.github.com/repos/CruGlobal/give-web/assignees{/user}","branches_url":"https://api.github.com/repos/CruGlobal/give-web/branches{/branch}","tags_url":"https://api.github.com/repos/CruGlobal/give-web/tags","blobs_url":"https://api.github.com/repos/CruGlobal/give-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CruGlobal/give-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CruGlobal/give-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/CruGlobal/give-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CruGlobal/give-web/statuses/{sha}","languages_url":"https://api.github.com/repos/CruGlobal/give-web/languages","stargazers_url":"https://api.github.com/repos/CruGlobal/give-web/stargazers","contributors_url":"https://api.github.com/repos/CruGlobal/give-web/contributors","subscribers_url":"https://api.github.com/repos/CruGlobal/give-web/subscribers","subscription_url":"https://api.github.com/repos/CruGlobal/give-web/subscription","commits_url":"https://api.github.com/repos/CruGlobal/give-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/CruGlobal/give-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/CruGlobal/give-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/CruGlobal/give-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/CruGlobal/give-web/contents/{+path}","compare_url":"https://api.github.com/repos/CruGlobal/give-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CruGlobal/give-web/merges","archive_url":"https://api.github.com/repos/CruGlobal/give-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CruGlobal/give-web/downloads","issues_url":"https://api.github.com/repos/CruGlobal/give-web/issues{/number}","pulls_url":"https://api.github.com/repos/CruGlobal/give-web/pulls{/number}","milestones_url":"https://api.github.com/repos/CruGlobal/give-web/milestones{/number}","notifications_url":"https://api.github.com/repos/CruGlobal/give-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CruGlobal/give-web/labels{/name}","releases_url":"https://api.github.com/repos/CruGlobal/give-web/releases{/id}","deployments_url":"https://api.github.com/repos/CruGlobal/give-web/deployments","created_at":"2016-07-12T19:07:44Z","updated_at":"2016-08-04T19:41:21Z","pushed_at":"2016-09-07T21:44:42Z","git_url":"git://github.com/CruGlobal/give-web.git","ssh_url":"git@github.com:CruGlobal/give-web.git","clone_url":"https://github.com/CruGlobal/give-web.git","svn_url":"https://github.com/CruGlobal/give-web","homepage":"https://give.cru.org","size":1124,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"CruGlobal:master","ref":"master","sha":"720121632f6fcd569b0e08cedfe21fa200606448","user":{"login":"CruGlobal","id":1785912,"avatar_url":"https://avatars.githubusercontent.com/u/1785912?v=3","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"repo":{"id":63185373,"name":"give-web","full_name":"CruGlobal/give-web","owner":{"login":"CruGlobal","id":1785912,"avatar_url":"https://avatars.githubusercontent.com/u/1785912?v=3","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CruGlobal/give-web","description":"Front end Angular components for new give site","fork":false,"url":"https://api.github.com/repos/CruGlobal/give-web","forks_url":"https://api.github.com/repos/CruGlobal/give-web/forks","keys_url":"https://api.github.com/repos/CruGlobal/give-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CruGlobal/give-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CruGlobal/give-web/teams","hooks_url":"https://api.github.com/repos/CruGlobal/give-web/hooks","issue_events_url":"https://api.github.com/repos/CruGlobal/give-web/issues/events{/number}","events_url":"https://api.github.com/repos/CruGlobal/give-web/events","assignees_url":"https://api.github.com/repos/CruGlobal/give-web/assignees{/user}","branches_url":"https://api.github.com/repos/CruGlobal/give-web/branches{/branch}","tags_url":"https://api.github.com/repos/CruGlobal/give-web/tags","blobs_url":"https://api.github.com/repos/CruGlobal/give-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CruGlobal/give-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CruGlobal/give-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/CruGlobal/give-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CruGlobal/give-web/statuses/{sha}","languages_url":"https://api.github.com/repos/CruGlobal/give-web/languages","stargazers_url":"https://api.github.com/repos/CruGlobal/give-web/stargazers","contributors_url":"https://api.github.com/repos/CruGlobal/give-web/contributors","subscribers_url":"https://api.github.com/repos/CruGlobal/give-web/subscribers","subscription_url":"https://api.github.com/repos/CruGlobal/give-web/subscription","commits_url":"https://api.github.com/repos/CruGlobal/give-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/CruGlobal/give-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/CruGlobal/give-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/CruGlobal/give-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/CruGlobal/give-web/contents/{+path}","compare_url":"https://api.github.com/repos/CruGlobal/give-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CruGlobal/give-web/merges","archive_url":"https://api.github.com/repos/CruGlobal/give-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CruGlobal/give-web/downloads","issues_url":"https://api.github.com/repos/CruGlobal/give-web/issues{/number}","pulls_url":"https://api.github.com/repos/CruGlobal/give-web/pulls{/number}","milestones_url":"https://api.github.com/repos/CruGlobal/give-web/milestones{/number}","notifications_url":"https://api.github.com/repos/CruGlobal/give-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CruGlobal/give-web/labels{/name}","releases_url":"https://api.github.com/repos/CruGlobal/give-web/releases{/id}","deployments_url":"https://api.github.com/repos/CruGlobal/give-web/deployments","created_at":"2016-07-12T19:07:44Z","updated_at":"2016-08-04T19:41:21Z","pushed_at":"2016-09-07T21:44:42Z","git_url":"git://github.com/CruGlobal/give-web.git","ssh_url":"git@github.com:CruGlobal/give-web.git","clone_url":"https://github.com/CruGlobal/give-web.git","svn_url":"https://github.com/CruGlobal/give-web","homepage":"https://give.cru.org","size":1124,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CruGlobal/give-web/pulls/76"},"html":{"href":"https://github.com/CruGlobal/give-web/pull/76"},"issue":{"href":"https://api.github.com/repos/CruGlobal/give-web/issues/76"},"comments":{"href":"https://api.github.com/repos/CruGlobal/give-web/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/CruGlobal/give-web/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/CruGlobal/give-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CruGlobal/give-web/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/CruGlobal/give-web/statuses/e264517223f3da1cf56d4a7fea9f00acb5a8e1ea"}}}}
{"actor":{"display_login":"OzzieOrca"}}