{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments/73800149","id":73800149,"diff_hunk":"@@ -61,32 +63,42 @@ $orderPaymentForm.submit(function (e) {\n     e.preventDefault();\n     var data = $orderPaymentForm.serialize();\n     $orderPaymentForm.setFormLoading();\n+\n     $.ajax({\n         url: $orderPaymentForm.attr('action'),\n         type: 'post',\n         dataType: 'json',\n         data: data,\n         success: function (json) {\n             if (json.status === \"ok\") {\n-                userEmail = json.email;\n-\n-                if (json.order_status === \"initialized\") {\n-                    $payViaStripe.click();\n-                } else if (json.order_status === \"completed\") {\n-                    createSnackbar(\"Your payment was a success. Redirecting ...\");\n-\n-                    setTimeout(function () {\n-                        location.reload(true);\n-                    }, 1000);\n-\n-                    window.stop_timer = \"right_away\";\n-                    $(\"#registration-information-holder\").fadeOut();\n-                } else {\n-                    createSnackbar(\"An error occurred while initializing your payment.\", \"Try again\", function () {\n-                        $orderPaymentForm.submit();\n-                    });\n+                if (json.hasOwnProperty('email')) {\n+                    userEmail = json.email;\n                 }\n \n+                switch (json.action) {\n+                    case \"show_completed\":\n+                        createSnackbar(\"Your payment was a success. Redirecting ...\");\n+                        setTimeout(function () {","path":"app/static/js/admin/guest/ticketing.js","position":52,"original_position":52,"commit_id":"302bc1cf4e291f1c6fd5c6c89b752ee4fb4cec8e","original_commit_id":"302bc1cf4e291f1c6fd5c6c89b752ee4fb4cec8e","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Expected indentation of 20 space characters but found 24. (indent)](https://www.codacy.com/app/fossasia/open-event-orga-server/file/3183193761/issues/source?bid=3448950&fileBranchId=3507663#l81)","created_at":"2016-08-07T11:19:29Z","updated_at":"2016-08-07T11:19:29Z","html_url":"https://github.com/fossasia/open-event-orga-server/pull/2096#discussion_r73800149","pull_request_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2096","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments/73800149"},"html":{"href":"https://github.com/fossasia/open-event-orga-server/pull/2096#discussion_r73800149"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2096"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2096","id":80363239,"html_url":"https://github.com/fossasia/open-event-orga-server/pull/2096","diff_url":"https://github.com/fossasia/open-event-orga-server/pull/2096.diff","patch_url":"https://github.com/fossasia/open-event-orga-server/pull/2096.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/2096","number":2096,"state":"open","locked":false,"title":" [DO NOT MERGE] PayPal integration alongside Stripe","user":{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false},"body":"## Not ready for merge\r\n\r\nRelated issues: #1970 and #1958.\r\n\r\n### Screenshot:\r\n![capture](https://cloud.githubusercontent.com/assets/2404372/17461885/3da1e62e-5cb8-11e6-9bf6-fbee793b6623.PNG)\r\n","created_at":"2016-08-07T10:02:17Z","updated_at":"2016-08-07T11:19:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e45fb0dc007fc26b00643bc020d5ec927f3e24f1","assignee":{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false},"assignees":[{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones/18","html_url":"https://github.com/fossasia/open-event-orga-server/milestones/GSOC%202016:%20Milestone%2013","labels_url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones/18/labels","id":1762392,"number":18,"title":"GSOC 2016: Milestone 13","description":"GSOC 2016 Milestone 13 - All issues to be completed by 14th August 2016.\r\n\r\nInstructions: \r\n1. Create issues to work on.\r\n2. Assign the issue to the milestone.\r\n3. Assign the issue to a user.\r\n\r\nCompleted Milestone:\r\n1. Create a blog post describing what has been done.\r\n2. Tag a release.\r\n3. Deploy on a server.","creator":{"login":"juslee","id":1696598,"avatar_url":"https://avatars.githubusercontent.com/u/1696598?v=3","gravatar_id":"","url":"https://api.github.com/users/juslee","html_url":"https://github.com/juslee","followers_url":"https://api.github.com/users/juslee/followers","following_url":"https://api.github.com/users/juslee/following{/other_user}","gists_url":"https://api.github.com/users/juslee/gists{/gist_id}","starred_url":"https://api.github.com/users/juslee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juslee/subscriptions","organizations_url":"https://api.github.com/users/juslee/orgs","repos_url":"https://api.github.com/users/juslee/repos","events_url":"https://api.github.com/users/juslee/events{/privacy}","received_events_url":"https://api.github.com/users/juslee/received_events","type":"User","site_admin":false},"open_issues":62,"closed_issues":2,"state":"open","created_at":"2016-05-12T13:19:38Z","updated_at":"2016-08-07T10:03:28Z","due_on":"2016-08-13T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2096/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2096/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/2096/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/302bc1cf4e291f1c6fd5c6c89b752ee4fb4cec8e","head":{"label":"niranjan94:gsoc/feature/ticketing-payments/paypal-integration","ref":"gsoc/feature/ticketing-payments/paypal-integration","sha":"302bc1cf4e291f1c6fd5c6c89b752ee4fb4cec8e","user":{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false},"repo":{"id":59465623,"name":"open-event-orga-server","full_name":"niranjan94/open-event-orga-server","owner":{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/niranjan94/open-event-orga-server","description":"The Open Event Server to manage the event(s)","fork":true,"url":"https://api.github.com/repos/niranjan94/open-event-orga-server","forks_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/forks","keys_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/teams","hooks_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/hooks","issue_events_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/issues/events{/number}","events_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/events","assignees_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/assignees{/user}","branches_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/branches{/branch}","tags_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/tags","blobs_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/statuses/{sha}","languages_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/languages","stargazers_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/stargazers","contributors_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/contributors","subscribers_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/subscribers","subscription_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/subscription","commits_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/contents/{+path}","compare_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/merges","archive_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/downloads","issues_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/issues{/number}","pulls_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/pulls{/number}","milestones_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/milestones{/number}","notifications_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/labels{/name}","releases_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/releases{/id}","deployments_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/deployments","created_at":"2016-05-23T08:31:07Z","updated_at":"2016-07-19T04:01:31Z","pushed_at":"2016-08-07T10:44:21Z","git_url":"git://github.com/niranjan94/open-event-orga-server.git","ssh_url":"git@github.com:niranjan94/open-event-orga-server.git","clone_url":"https://github.com/niranjan94/open-event-orga-server.git","svn_url":"https://github.com/niranjan94/open-event-orga-server","homepage":"https://open-event.herokuapp.com","size":13170,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fossasia:development","ref":"development","sha":"d21d659fd378bcb8f1186a12c9c655053624cea1","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35270176,"name":"open-event-orga-server","full_name":"fossasia/open-event-orga-server","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-orga-server","description":"The Open Event Server to manage the event(s)","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-orga-server","forks_url":"https://api.github.com/repos/fossasia/open-event-orga-server/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-orga-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-orga-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-orga-server/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-orga-server/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-orga-server/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-orga-server/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-orga-server/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-orga-server/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-orga-server/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-orga-server/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-orga-server/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-orga-server/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-orga-server/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-orga-server/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-orga-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-orga-server/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-orga-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-orga-server/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-orga-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-orga-server/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-orga-server/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/deployments","created_at":"2015-05-08T09:16:19Z","updated_at":"2016-08-05T16:10:38Z","pushed_at":"2016-08-07T10:44:21Z","git_url":"git://github.com/fossasia/open-event-orga-server.git","ssh_url":"git@github.com:fossasia/open-event-orga-server.git","clone_url":"https://github.com/fossasia/open-event-orga-server.git","svn_url":"https://github.com/fossasia/open-event-orga-server","homepage":"https://open-event-dev.herokuapp.com/","size":591869,"stargazers_count":28,"watchers_count":28,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":73,"forks":57,"open_issues":73,"watchers":28,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2096"},"html":{"href":"https://github.com/fossasia/open-event-orga-server/pull/2096"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/2096"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/2096/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2096/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2096/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/302bc1cf4e291f1c6fd5c6c89b752ee4fb4cec8e"}}}}
{"actor":{"display_login":"codacy-bot"}}