{"action":"created","comment":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments/50988997","id":50988997,"diff_hunk":"@@ -1,3 +1,5 @@\n+require('babel-core/register');","path":"website/src/controllers/payments/paypalBillingSetup.js","position":1,"original_position":1,"commit_id":"dd6ea91362ff40f68ddbc227855d5605fe85bf33","original_commit_id":"dd6ea91362ff40f68ddbc227855d5605fe85bf33","user":{"login":"paglias","id":589911,"avatar_url":"https://avatars.githubusercontent.com/u/589911?v=3","gravatar_id":"","url":"https://api.github.com/users/paglias","html_url":"https://github.com/paglias","followers_url":"https://api.github.com/users/paglias/followers","following_url":"https://api.github.com/users/paglias/following{/other_user}","gists_url":"https://api.github.com/users/paglias/gists{/gist_id}","starred_url":"https://api.github.com/users/paglias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paglias/subscriptions","organizations_url":"https://api.github.com/users/paglias/orgs","repos_url":"https://api.github.com/users/paglias/repos","events_url":"https://api.github.com/users/paglias/events{/privacy}","received_events_url":"https://api.github.com/users/paglias/received_events","type":"User","site_admin":false},"body":"You should not use babel-core/register. When exactly this code will have to run from the command line? If only locally you can use https://babeljs.io/docs/usage/cli/","created_at":"2016-01-27T14:21:45Z","updated_at":"2016-01-27T14:21:45Z","html_url":"https://github.com/HabitRPG/habitrpg/pull/6558#discussion_r50988997","pull_request_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6558","_links":{"self":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments/50988997"},"html":{"href":"https://github.com/HabitRPG/habitrpg/pull/6558#discussion_r50988997"},"pull_request":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6558"}}},"pull_request":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6558","id":56637387,"html_url":"https://github.com/HabitRPG/habitrpg/pull/6558","diff_url":"https://github.com/HabitRPG/habitrpg/pull/6558.diff","patch_url":"https://github.com/HabitRPG/habitrpg/pull/6558.patch","issue_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6558","number":6558,"state":"open","locked":false,"title":"Paypal sub button creates an alert when there are errors fix #6401","user":{"login":"ojeytonwilliams","id":15801806,"avatar_url":"https://avatars.githubusercontent.com/u/15801806?v=3","gravatar_id":"","url":"https://api.github.com/users/ojeytonwilliams","html_url":"https://github.com/ojeytonwilliams","followers_url":"https://api.github.com/users/ojeytonwilliams/followers","following_url":"https://api.github.com/users/ojeytonwilliams/following{/other_user}","gists_url":"https://api.github.com/users/ojeytonwilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/ojeytonwilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojeytonwilliams/subscriptions","organizations_url":"https://api.github.com/users/ojeytonwilliams/orgs","repos_url":"https://api.github.com/users/ojeytonwilliams/repos","events_url":"https://api.github.com/users/ojeytonwilliams/events{/privacy}","received_events_url":"https://api.github.com/users/ojeytonwilliams/received_events","type":"User","site_admin":false},"body":"Should fix #6401\r\n\r\nThe main body of the fix just handles any error messages coming back from Paypal.  I opted to pull out error_description, it looks to be the most informative message, and pop that into an alert.\r\n\r\nIn addition I changed a bit of paypalBillingSetup since that didn't appear to be working properly or give you the keys you'd want for testing.\r\n\r\nHope this is okay!","created_at":"2016-01-20T17:08:26Z","updated_at":"2016-01-27T14:21:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3a791f6aa515deb4d38164fcd5ab6f154497735","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6558/commits","review_comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6558/comments","review_comment_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6558/comments","statuses_url":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/dd6ea91362ff40f68ddbc227855d5605fe85bf33","head":{"label":"ojeytonwilliams:paypal-alert-fix","ref":"paypal-alert-fix","sha":"dd6ea91362ff40f68ddbc227855d5605fe85bf33","user":{"login":"ojeytonwilliams","id":15801806,"avatar_url":"https://avatars.githubusercontent.com/u/15801806?v=3","gravatar_id":"","url":"https://api.github.com/users/ojeytonwilliams","html_url":"https://github.com/ojeytonwilliams","followers_url":"https://api.github.com/users/ojeytonwilliams/followers","following_url":"https://api.github.com/users/ojeytonwilliams/following{/other_user}","gists_url":"https://api.github.com/users/ojeytonwilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/ojeytonwilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojeytonwilliams/subscriptions","organizations_url":"https://api.github.com/users/ojeytonwilliams/orgs","repos_url":"https://api.github.com/users/ojeytonwilliams/repos","events_url":"https://api.github.com/users/ojeytonwilliams/events{/privacy}","received_events_url":"https://api.github.com/users/ojeytonwilliams/received_events","type":"User","site_admin":false},"repo":{"id":45988150,"name":"habitrpg","full_name":"ojeytonwilliams/habitrpg","owner":{"login":"ojeytonwilliams","id":15801806,"avatar_url":"https://avatars.githubusercontent.com/u/15801806?v=3","gravatar_id":"","url":"https://api.github.com/users/ojeytonwilliams","html_url":"https://github.com/ojeytonwilliams","followers_url":"https://api.github.com/users/ojeytonwilliams/followers","following_url":"https://api.github.com/users/ojeytonwilliams/following{/other_user}","gists_url":"https://api.github.com/users/ojeytonwilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/ojeytonwilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojeytonwilliams/subscriptions","organizations_url":"https://api.github.com/users/ojeytonwilliams/orgs","repos_url":"https://api.github.com/users/ojeytonwilliams/repos","events_url":"https://api.github.com/users/ojeytonwilliams/events{/privacy}","received_events_url":"https://api.github.com/users/ojeytonwilliams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ojeytonwilliams/habitrpg","description":"A habit tracker app which treats your goals like a Role Playing Game.","fork":true,"url":"https://api.github.com/repos/ojeytonwilliams/habitrpg","forks_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/forks","keys_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/teams","hooks_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/hooks","issue_events_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/issues/events{/number}","events_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/events","assignees_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/assignees{/user}","branches_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/branches{/branch}","tags_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/tags","blobs_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/git/refs{/sha}","trees_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/statuses/{sha}","languages_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/languages","stargazers_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/stargazers","contributors_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/contributors","subscribers_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/subscribers","subscription_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/subscription","commits_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/commits{/sha}","git_commits_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/git/commits{/sha}","comments_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/comments{/number}","issue_comment_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/issues/comments{/number}","contents_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/contents/{+path}","compare_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/merges","archive_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/downloads","issues_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/issues{/number}","pulls_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/pulls{/number}","milestones_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/milestones{/number}","notifications_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/labels{/name}","releases_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/releases{/id}","deployments_url":"https://api.github.com/repos/ojeytonwilliams/habitrpg/deployments","created_at":"2015-11-11T14:56:01Z","updated_at":"2016-01-20T16:31:04Z","pushed_at":"2016-01-20T16:55:13Z","git_url":"git://github.com/ojeytonwilliams/habitrpg.git","ssh_url":"git@github.com:ojeytonwilliams/habitrpg.git","clone_url":"https://github.com/ojeytonwilliams/habitrpg.git","svn_url":"https://github.com/ojeytonwilliams/habitrpg","homepage":"https://habitica.com","size":316376,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"HabitRPG:develop","ref":"develop","sha":"023ee44ddcae865b5a52fc2f4f858b4346c82ae9","user":{"login":"HabitRPG","id":3834775,"avatar_url":"https://avatars.githubusercontent.com/u/3834775?v=3","gravatar_id":"","url":"https://api.github.com/users/HabitRPG","html_url":"https://github.com/HabitRPG","followers_url":"https://api.github.com/users/HabitRPG/followers","following_url":"https://api.github.com/users/HabitRPG/following{/other_user}","gists_url":"https://api.github.com/users/HabitRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/HabitRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HabitRPG/subscriptions","organizations_url":"https://api.github.com/users/HabitRPG/orgs","repos_url":"https://api.github.com/users/HabitRPG/repos","events_url":"https://api.github.com/users/HabitRPG/events{/privacy}","received_events_url":"https://api.github.com/users/HabitRPG/received_events","type":"Organization","site_admin":false},"repo":{"id":4578898,"name":"habitrpg","full_name":"HabitRPG/habitrpg","owner":{"login":"HabitRPG","id":3834775,"avatar_url":"https://avatars.githubusercontent.com/u/3834775?v=3","gravatar_id":"","url":"https://api.github.com/users/HabitRPG","html_url":"https://github.com/HabitRPG","followers_url":"https://api.github.com/users/HabitRPG/followers","following_url":"https://api.github.com/users/HabitRPG/following{/other_user}","gists_url":"https://api.github.com/users/HabitRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/HabitRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HabitRPG/subscriptions","organizations_url":"https://api.github.com/users/HabitRPG/orgs","repos_url":"https://api.github.com/users/HabitRPG/repos","events_url":"https://api.github.com/users/HabitRPG/events{/privacy}","received_events_url":"https://api.github.com/users/HabitRPG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HabitRPG/habitrpg","description":"A habit tracker app which treats your goals like a Role Playing Game.","fork":false,"url":"https://api.github.com/repos/HabitRPG/habitrpg","forks_url":"https://api.github.com/repos/HabitRPG/habitrpg/forks","keys_url":"https://api.github.com/repos/HabitRPG/habitrpg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HabitRPG/habitrpg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HabitRPG/habitrpg/teams","hooks_url":"https://api.github.com/repos/HabitRPG/habitrpg/hooks","issue_events_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/events{/number}","events_url":"https://api.github.com/repos/HabitRPG/habitrpg/events","assignees_url":"https://api.github.com/repos/HabitRPG/habitrpg/assignees{/user}","branches_url":"https://api.github.com/repos/HabitRPG/habitrpg/branches{/branch}","tags_url":"https://api.github.com/repos/HabitRPG/habitrpg/tags","blobs_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/refs{/sha}","trees_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/{sha}","languages_url":"https://api.github.com/repos/HabitRPG/habitrpg/languages","stargazers_url":"https://api.github.com/repos/HabitRPG/habitrpg/stargazers","contributors_url":"https://api.github.com/repos/HabitRPG/habitrpg/contributors","subscribers_url":"https://api.github.com/repos/HabitRPG/habitrpg/subscribers","subscription_url":"https://api.github.com/repos/HabitRPG/habitrpg/subscription","commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/commits{/sha}","git_commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/commits{/sha}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/comments{/number}","issue_comment_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/comments{/number}","contents_url":"https://api.github.com/repos/HabitRPG/habitrpg/contents/{+path}","compare_url":"https://api.github.com/repos/HabitRPG/habitrpg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HabitRPG/habitrpg/merges","archive_url":"https://api.github.com/repos/HabitRPG/habitrpg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HabitRPG/habitrpg/downloads","issues_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues{/number}","pulls_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls{/number}","milestones_url":"https://api.github.com/repos/HabitRPG/habitrpg/milestones{/number}","notifications_url":"https://api.github.com/repos/HabitRPG/habitrpg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HabitRPG/habitrpg/labels{/name}","releases_url":"https://api.github.com/repos/HabitRPG/habitrpg/releases{/id}","deployments_url":"https://api.github.com/repos/HabitRPG/habitrpg/deployments","created_at":"2012-06-06T22:49:48Z","updated_at":"2016-01-27T14:12:08Z","pushed_at":"2016-01-27T11:32:36Z","git_url":"git://github.com/HabitRPG/habitrpg.git","ssh_url":"git@github.com:HabitRPG/habitrpg.git","clone_url":"https://github.com/HabitRPG/habitrpg.git","svn_url":"https://github.com/HabitRPG/habitrpg","homepage":"https://habitica.com","size":330761,"stargazers_count":3455,"watchers_count":3455,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1438,"mirror_url":null,"open_issues_count":453,"forks":1438,"open_issues":453,"watchers":3455,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6558"},"html":{"href":"https://github.com/HabitRPG/habitrpg/pull/6558"},"issue":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6558"},"comments":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6558/comments"},"review_comments":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6558/comments"},"review_comment":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6558/commits"},"statuses":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/dd6ea91362ff40f68ddbc227855d5605fe85bf33"}}}}