{"action":"created","comment":{"url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls/comments/93782384","pull_request_review_id":14318562,"id":93782384,"diff_hunk":"@@ -100,48 +100,81 @@ def register_user(conference_id):\n \t\t\tfor message in field:\n \t\t\t\tflash(message,field)\n \t\treturn redirect('/')\n-\t\n \tif request.form['pay'] == 'check_PO':\n \t\treturn render_template('confirmation.html')\n \tif request.form['pay'] == 'credit_debit':\n-\n-\t\tmember = {\n+\t\tmember_data = {\n \t\t\t'id': member.id,\n \t\t\t'first_name': member.first_name,\n \t\t\t'last_name': member.last_name,\n \t\t\t'email': member.email\n \t\t\t}\n-\t\treturn render_template('credit_card.html', member=member, conf_id=conf.id)\n+\t\t#FIGURING OUT HOW MUCH TO CHARGE TO CREDIT CARD TRANSACTION\n+\t\tconf = Conference.get_by_id(conf.id)\n+\t\tdays = request.form['regis_len']\n+\t\tif days == 'friday' or days == 'saturday':\n+\t\t\tday_divisor = 2\n+\t\telse:\n+\t\t\tday_divisor = 1\n+\t\tmember_type = member.type   \n+\t\tif member_type == \"Professional\":\n+\t\t\tmember_type_cost = conf.prof_cost\n+\t\telif member_type == \"Vendor\":\n+\t\t\tmember_type_cost = conf.vend_cost\n+\t\telse:\n+\t\t\tmember_type_cost = conf.stud_cost\n+\n+\t\tmember_cost = member_type_cost/day_divisor\n+\t\treturn render_template('credit_card.html', member=member_data, conf_id=conf.id, member_cost = member_cost)\n \t#send data by calling functions from imported files and sending it the request.form by using request.form.copy()\n \n+\n+\n+# TEST ROUTE FOR RENDERING CREDIT CARD INFORMATION CHETAN 12/20/16\n+@app.route('/creditcard')\n+def cctest():","path":"OCAPP/Controllers/Conferences.py","position":49,"original_position":49,"commit_id":"c9d5ecda37eb297f3137bd20b5b4d509d04f1018","original_commit_id":"c9d5ecda37eb297f3137bd20b5b4d509d04f1018","user":{"login":"craj1031tx","id":22451149,"avatar_url":"https://avatars.githubusercontent.com/u/22451149?v=3","gravatar_id":"","url":"https://api.github.com/users/craj1031tx","html_url":"https://github.com/craj1031tx","followers_url":"https://api.github.com/users/craj1031tx/followers","following_url":"https://api.github.com/users/craj1031tx/following{/other_user}","gists_url":"https://api.github.com/users/craj1031tx/gists{/gist_id}","starred_url":"https://api.github.com/users/craj1031tx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craj1031tx/subscriptions","organizations_url":"https://api.github.com/users/craj1031tx/orgs","repos_url":"https://api.github.com/users/craj1031tx/repos","events_url":"https://api.github.com/users/craj1031tx/events{/privacy}","received_events_url":"https://api.github.com/users/craj1031tx/received_events","type":"User","site_admin":false},"body":"would like to keep it in there temporarily in case we need to do any other testing in the short term. can remove it as soon as we're sure the cc functionality is fully working. helps with debugging as we don't have to register a user every time ","created_at":"2016-12-23T16:30:58Z","updated_at":"2016-12-23T16:30:58Z","html_url":"https://github.com/Open-Conference-App/open_conference_app/pull/21#discussion_r93782384","pull_request_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls/comments/93782384"},"html":{"href":"https://github.com/Open-Conference-App/open_conference_app/pull/21#discussion_r93782384"},"pull_request":{"href":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls/21","id":99020372,"html_url":"https://github.com/Open-Conference-App/open_conference_app/pull/21","diff_url":"https://github.com/Open-Conference-App/open_conference_app/pull/21.diff","patch_url":"https://github.com/Open-Conference-App/open_conference_app/pull/21.patch","issue_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/issues/21","number":21,"state":"open","locked":false,"title":"Chetan local credit card branch","user":{"login":"craj1031tx","id":22451149,"avatar_url":"https://avatars.githubusercontent.com/u/22451149?v=3","gravatar_id":"","url":"https://api.github.com/users/craj1031tx","html_url":"https://github.com/craj1031tx","followers_url":"https://api.github.com/users/craj1031tx/followers","following_url":"https://api.github.com/users/craj1031tx/following{/other_user}","gists_url":"https://api.github.com/users/craj1031tx/gists{/gist_id}","starred_url":"https://api.github.com/users/craj1031tx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craj1031tx/subscriptions","organizations_url":"https://api.github.com/users/craj1031tx/orgs","repos_url":"https://api.github.com/users/craj1031tx/repos","events_url":"https://api.github.com/users/craj1031tx/events{/privacy}","received_events_url":"https://api.github.com/users/craj1031tx/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-21T23:00:02Z","updated_at":"2016-12-23T16:30:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51c827aed8ebd4ed8dcad1eda7c5cda052e676aa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls/21/commits","review_comments_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls/21/comments","review_comment_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/issues/21/comments","statuses_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/statuses/c9d5ecda37eb297f3137bd20b5b4d509d04f1018","head":{"label":"craj1031tx:chetan_local_credit_card_branch","ref":"chetan_local_credit_card_branch","sha":"c9d5ecda37eb297f3137bd20b5b4d509d04f1018","user":{"login":"craj1031tx","id":22451149,"avatar_url":"https://avatars.githubusercontent.com/u/22451149?v=3","gravatar_id":"","url":"https://api.github.com/users/craj1031tx","html_url":"https://github.com/craj1031tx","followers_url":"https://api.github.com/users/craj1031tx/followers","following_url":"https://api.github.com/users/craj1031tx/following{/other_user}","gists_url":"https://api.github.com/users/craj1031tx/gists{/gist_id}","starred_url":"https://api.github.com/users/craj1031tx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craj1031tx/subscriptions","organizations_url":"https://api.github.com/users/craj1031tx/orgs","repos_url":"https://api.github.com/users/craj1031tx/repos","events_url":"https://api.github.com/users/craj1031tx/events{/privacy}","received_events_url":"https://api.github.com/users/craj1031tx/received_events","type":"User","site_admin":false},"repo":{"id":75948957,"name":"open_conference_app","full_name":"craj1031tx/open_conference_app","owner":{"login":"craj1031tx","id":22451149,"avatar_url":"https://avatars.githubusercontent.com/u/22451149?v=3","gravatar_id":"","url":"https://api.github.com/users/craj1031tx","html_url":"https://github.com/craj1031tx","followers_url":"https://api.github.com/users/craj1031tx/followers","following_url":"https://api.github.com/users/craj1031tx/following{/other_user}","gists_url":"https://api.github.com/users/craj1031tx/gists{/gist_id}","starred_url":"https://api.github.com/users/craj1031tx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craj1031tx/subscriptions","organizations_url":"https://api.github.com/users/craj1031tx/orgs","repos_url":"https://api.github.com/users/craj1031tx/repos","events_url":"https://api.github.com/users/craj1031tx/events{/privacy}","received_events_url":"https://api.github.com/users/craj1031tx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/craj1031tx/open_conference_app","description":null,"fork":true,"url":"https://api.github.com/repos/craj1031tx/open_conference_app","forks_url":"https://api.github.com/repos/craj1031tx/open_conference_app/forks","keys_url":"https://api.github.com/repos/craj1031tx/open_conference_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/craj1031tx/open_conference_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/craj1031tx/open_conference_app/teams","hooks_url":"https://api.github.com/repos/craj1031tx/open_conference_app/hooks","issue_events_url":"https://api.github.com/repos/craj1031tx/open_conference_app/issues/events{/number}","events_url":"https://api.github.com/repos/craj1031tx/open_conference_app/events","assignees_url":"https://api.github.com/repos/craj1031tx/open_conference_app/assignees{/user}","branches_url":"https://api.github.com/repos/craj1031tx/open_conference_app/branches{/branch}","tags_url":"https://api.github.com/repos/craj1031tx/open_conference_app/tags","blobs_url":"https://api.github.com/repos/craj1031tx/open_conference_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/craj1031tx/open_conference_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/craj1031tx/open_conference_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/craj1031tx/open_conference_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/craj1031tx/open_conference_app/statuses/{sha}","languages_url":"https://api.github.com/repos/craj1031tx/open_conference_app/languages","stargazers_url":"https://api.github.com/repos/craj1031tx/open_conference_app/stargazers","contributors_url":"https://api.github.com/repos/craj1031tx/open_conference_app/contributors","subscribers_url":"https://api.github.com/repos/craj1031tx/open_conference_app/subscribers","subscription_url":"https://api.github.com/repos/craj1031tx/open_conference_app/subscription","commits_url":"https://api.github.com/repos/craj1031tx/open_conference_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/craj1031tx/open_conference_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/craj1031tx/open_conference_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/craj1031tx/open_conference_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/craj1031tx/open_conference_app/contents/{+path}","compare_url":"https://api.github.com/repos/craj1031tx/open_conference_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/craj1031tx/open_conference_app/merges","archive_url":"https://api.github.com/repos/craj1031tx/open_conference_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/craj1031tx/open_conference_app/downloads","issues_url":"https://api.github.com/repos/craj1031tx/open_conference_app/issues{/number}","pulls_url":"https://api.github.com/repos/craj1031tx/open_conference_app/pulls{/number}","milestones_url":"https://api.github.com/repos/craj1031tx/open_conference_app/milestones{/number}","notifications_url":"https://api.github.com/repos/craj1031tx/open_conference_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/craj1031tx/open_conference_app/labels{/name}","releases_url":"https://api.github.com/repos/craj1031tx/open_conference_app/releases{/id}","deployments_url":"https://api.github.com/repos/craj1031tx/open_conference_app/deployments","created_at":"2016-12-08T15:16:58Z","updated_at":"2016-12-08T15:16:59Z","pushed_at":"2016-12-21T22:59:32Z","git_url":"git://github.com/craj1031tx/open_conference_app.git","ssh_url":"git@github.com:craj1031tx/open_conference_app.git","clone_url":"https://github.com/craj1031tx/open_conference_app.git","svn_url":"https://github.com/craj1031tx/open_conference_app","homepage":null,"size":917,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"master"}},"base":{"label":"Open-Conference-App:master","ref":"master","sha":"702148e99491a630e6c519db94a5c7becd4cae9d","user":{"login":"Open-Conference-App","id":22522931,"avatar_url":"https://avatars.githubusercontent.com/u/22522931?v=3","gravatar_id":"","url":"https://api.github.com/users/Open-Conference-App","html_url":"https://github.com/Open-Conference-App","followers_url":"https://api.github.com/users/Open-Conference-App/followers","following_url":"https://api.github.com/users/Open-Conference-App/following{/other_user}","gists_url":"https://api.github.com/users/Open-Conference-App/gists{/gist_id}","starred_url":"https://api.github.com/users/Open-Conference-App/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Open-Conference-App/subscriptions","organizations_url":"https://api.github.com/users/Open-Conference-App/orgs","repos_url":"https://api.github.com/users/Open-Conference-App/repos","events_url":"https://api.github.com/users/Open-Conference-App/events{/privacy}","received_events_url":"https://api.github.com/users/Open-Conference-App/received_events","type":"Organization","site_admin":false},"repo":{"id":70274531,"name":"open_conference_app","full_name":"Open-Conference-App/open_conference_app","owner":{"login":"Open-Conference-App","id":22522931,"avatar_url":"https://avatars.githubusercontent.com/u/22522931?v=3","gravatar_id":"","url":"https://api.github.com/users/Open-Conference-App","html_url":"https://github.com/Open-Conference-App","followers_url":"https://api.github.com/users/Open-Conference-App/followers","following_url":"https://api.github.com/users/Open-Conference-App/following{/other_user}","gists_url":"https://api.github.com/users/Open-Conference-App/gists{/gist_id}","starred_url":"https://api.github.com/users/Open-Conference-App/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Open-Conference-App/subscriptions","organizations_url":"https://api.github.com/users/Open-Conference-App/orgs","repos_url":"https://api.github.com/users/Open-Conference-App/repos","events_url":"https://api.github.com/users/Open-Conference-App/events{/privacy}","received_events_url":"https://api.github.com/users/Open-Conference-App/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Open-Conference-App/open_conference_app","description":null,"fork":false,"url":"https://api.github.com/repos/Open-Conference-App/open_conference_app","forks_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/forks","keys_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/teams","hooks_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/hooks","issue_events_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/issues/events{/number}","events_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/events","assignees_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/assignees{/user}","branches_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/branches{/branch}","tags_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/tags","blobs_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/statuses/{sha}","languages_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/languages","stargazers_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/stargazers","contributors_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/contributors","subscribers_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/subscribers","subscription_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/subscription","commits_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/contents/{+path}","compare_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/merges","archive_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/downloads","issues_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/issues{/number}","pulls_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls{/number}","milestones_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/milestones{/number}","notifications_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/labels{/name}","releases_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/releases{/id}","deployments_url":"https://api.github.com/repos/Open-Conference-App/open_conference_app/deployments","created_at":"2016-10-07T18:56:20Z","updated_at":"2016-10-07T19:17:24Z","pushed_at":"2016-12-21T23:00:03Z","git_url":"git://github.com/Open-Conference-App/open_conference_app.git","ssh_url":"git@github.com:Open-Conference-App/open_conference_app.git","clone_url":"https://github.com/Open-Conference-App/open_conference_app.git","svn_url":"https://github.com/Open-Conference-App/open_conference_app","homepage":null,"size":910,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls/21"},"html":{"href":"https://github.com/Open-Conference-App/open_conference_app/pull/21"},"issue":{"href":"https://api.github.com/repos/Open-Conference-App/open_conference_app/issues/21"},"comments":{"href":"https://api.github.com/repos/Open-Conference-App/open_conference_app/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Open-Conference-App/open_conference_app/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/Open-Conference-App/open_conference_app/statuses/c9d5ecda37eb297f3137bd20b5b4d509d04f1018"}}}}
{"actor":{"display_login":"craj1031tx"}}