{"action":"created","comment":{"url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/comments/32830518","id":32830518,"diff_hunk":"@@ -53,14 +54,19 @@ app.config(function($routeProvider) {\n       templateUrl: 'views/confirm-order.html',\n       controller: 'OrderController'\n     })\n+    .when('/payment/:id', {\n+      templateUrl: 'views/payment.html',\n+      controller: 'PaymentController'\n+    })\n     .otherwise({\n       redirectTo: '/'\n     });\n });\n \n app.constant('CONFIG', {\n-  // 'BASE_URI': '//localhost:3000',\n-  'BASE_URI': '//tma-develop.herokuapp.com',\n+  'BASE_URI': '//localhost:3000',\n+  // 'BASE_URI': '//tma-develop.herokuapp.com',\n+  STRIPE_PUBLISHABLE_KEY: \"\"","path":"app/scripts/app.js","position":28,"original_position":28,"commit_id":"3449cf2da7aca17cae19685c95e4ee468f8eb1be","original_commit_id":"3449cf2da7aca17cae19685c95e4ee468f8eb1be","user":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"body":"other option would be to send this `STRIPE_PUBLISHABLE_KEY` from backend in every `GET order/:id`\r\nsomething like:\r\n`json.stripe_publishabe_key STRIPE_PUBLISHABLE_KEY if (order.status == \"pending\")`\r\nand define `STRIPE_PUBLISHABLE_KEY` on backend in `application.yml` tohether with `STRIPE_API_KEY`","created_at":"2015-06-19T13:55:40Z","updated_at":"2015-06-19T13:55:40Z","html_url":"https://github.com/AgileVentures/TMA-client/pull/17#discussion_r32830518","pull_request_url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/comments/32830518"},"html":{"href":"https://github.com/AgileVentures/TMA-client/pull/17#discussion_r32830518"},"pull_request":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/17","id":37963043,"html_url":"https://github.com/AgileVentures/TMA-client/pull/17","diff_url":"https://github.com/AgileVentures/TMA-client/pull/17.diff","patch_url":"https://github.com/AgileVentures/TMA-client/pull/17.patch","issue_url":"https://api.github.com/repos/AgileVentures/TMA-client/issues/17","number":17,"state":"open","locked":false,"title":"[WIP] Payment implementation","user":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"body":"https://www.pivotaltracker.com/story/show/92300884\r\n\r\nAdded payment route,controller and views\r\nAdded angular-stripe module\r\nAdded `CONFIG.STRIPE_PUBLISHABLE_KEY`\r\n\r\nTODO: \r\n- validations\r\n- styling\r\n- discuss on endpoint format","created_at":"2015-06-18T01:05:14Z","updated_at":"2015-06-19T13:55:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"522a74e0e64b816199672e4324a69ef392c18575","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/17/commits","review_comments_url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/17/comments","review_comment_url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AgileVentures/TMA-client/issues/17/comments","statuses_url":"https://api.github.com/repos/AgileVentures/TMA-client/statuses/3449cf2da7aca17cae19685c95e4ee468f8eb1be","head":{"label":"razorcd:payment_implementation","ref":"payment_implementation","sha":"3449cf2da7aca17cae19685c95e4ee468f8eb1be","user":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"repo":{"id":35184459,"name":"TMA-client","full_name":"razorcd/TMA-client","owner":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/razorcd/TMA-client","description":"Client application for TakeMeAway API","fork":true,"url":"https://api.github.com/repos/razorcd/TMA-client","forks_url":"https://api.github.com/repos/razorcd/TMA-client/forks","keys_url":"https://api.github.com/repos/razorcd/TMA-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/razorcd/TMA-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/razorcd/TMA-client/teams","hooks_url":"https://api.github.com/repos/razorcd/TMA-client/hooks","issue_events_url":"https://api.github.com/repos/razorcd/TMA-client/issues/events{/number}","events_url":"https://api.github.com/repos/razorcd/TMA-client/events","assignees_url":"https://api.github.com/repos/razorcd/TMA-client/assignees{/user}","branches_url":"https://api.github.com/repos/razorcd/TMA-client/branches{/branch}","tags_url":"https://api.github.com/repos/razorcd/TMA-client/tags","blobs_url":"https://api.github.com/repos/razorcd/TMA-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/razorcd/TMA-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/razorcd/TMA-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/razorcd/TMA-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/razorcd/TMA-client/statuses/{sha}","languages_url":"https://api.github.com/repos/razorcd/TMA-client/languages","stargazers_url":"https://api.github.com/repos/razorcd/TMA-client/stargazers","contributors_url":"https://api.github.com/repos/razorcd/TMA-client/contributors","subscribers_url":"https://api.github.com/repos/razorcd/TMA-client/subscribers","subscription_url":"https://api.github.com/repos/razorcd/TMA-client/subscription","commits_url":"https://api.github.com/repos/razorcd/TMA-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/razorcd/TMA-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/razorcd/TMA-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/razorcd/TMA-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/razorcd/TMA-client/contents/{+path}","compare_url":"https://api.github.com/repos/razorcd/TMA-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/razorcd/TMA-client/merges","archive_url":"https://api.github.com/repos/razorcd/TMA-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/razorcd/TMA-client/downloads","issues_url":"https://api.github.com/repos/razorcd/TMA-client/issues{/number}","pulls_url":"https://api.github.com/repos/razorcd/TMA-client/pulls{/number}","milestones_url":"https://api.github.com/repos/razorcd/TMA-client/milestones{/number}","notifications_url":"https://api.github.com/repos/razorcd/TMA-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/razorcd/TMA-client/labels{/name}","releases_url":"https://api.github.com/repos/razorcd/TMA-client/releases{/id}","created_at":"2015-05-06T21:43:21Z","updated_at":"2015-05-06T21:43:22Z","pushed_at":"2015-06-18T15:29:56Z","git_url":"git://github.com/razorcd/TMA-client.git","ssh_url":"git@github.com:razorcd/TMA-client.git","clone_url":"https://github.com/razorcd/TMA-client.git","svn_url":"https://github.com/razorcd/TMA-client","homepage":null,"size":232,"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":"develop"}},"base":{"label":"AgileVentures:develop","ref":"develop","sha":"3e759b2a96e7da5494b18ce301906d6eb10e8426","user":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"repo":{"id":34601545,"name":"TMA-client","full_name":"AgileVentures/TMA-client","owner":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AgileVentures/TMA-client","description":"Client application for TakeMeAway API","fork":false,"url":"https://api.github.com/repos/AgileVentures/TMA-client","forks_url":"https://api.github.com/repos/AgileVentures/TMA-client/forks","keys_url":"https://api.github.com/repos/AgileVentures/TMA-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AgileVentures/TMA-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AgileVentures/TMA-client/teams","hooks_url":"https://api.github.com/repos/AgileVentures/TMA-client/hooks","issue_events_url":"https://api.github.com/repos/AgileVentures/TMA-client/issues/events{/number}","events_url":"https://api.github.com/repos/AgileVentures/TMA-client/events","assignees_url":"https://api.github.com/repos/AgileVentures/TMA-client/assignees{/user}","branches_url":"https://api.github.com/repos/AgileVentures/TMA-client/branches{/branch}","tags_url":"https://api.github.com/repos/AgileVentures/TMA-client/tags","blobs_url":"https://api.github.com/repos/AgileVentures/TMA-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AgileVentures/TMA-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AgileVentures/TMA-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/AgileVentures/TMA-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AgileVentures/TMA-client/statuses/{sha}","languages_url":"https://api.github.com/repos/AgileVentures/TMA-client/languages","stargazers_url":"https://api.github.com/repos/AgileVentures/TMA-client/stargazers","contributors_url":"https://api.github.com/repos/AgileVentures/TMA-client/contributors","subscribers_url":"https://api.github.com/repos/AgileVentures/TMA-client/subscribers","subscription_url":"https://api.github.com/repos/AgileVentures/TMA-client/subscription","commits_url":"https://api.github.com/repos/AgileVentures/TMA-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/AgileVentures/TMA-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/AgileVentures/TMA-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/AgileVentures/TMA-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/AgileVentures/TMA-client/contents/{+path}","compare_url":"https://api.github.com/repos/AgileVentures/TMA-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AgileVentures/TMA-client/merges","archive_url":"https://api.github.com/repos/AgileVentures/TMA-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AgileVentures/TMA-client/downloads","issues_url":"https://api.github.com/repos/AgileVentures/TMA-client/issues{/number}","pulls_url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls{/number}","milestones_url":"https://api.github.com/repos/AgileVentures/TMA-client/milestones{/number}","notifications_url":"https://api.github.com/repos/AgileVentures/TMA-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AgileVentures/TMA-client/labels{/name}","releases_url":"https://api.github.com/repos/AgileVentures/TMA-client/releases{/id}","created_at":"2015-04-26T07:03:12Z","updated_at":"2015-05-25T20:37:28Z","pushed_at":"2015-06-18T15:29:57Z","git_url":"git://github.com/AgileVentures/TMA-client.git","ssh_url":"git@github.com:AgileVentures/TMA-client.git","clone_url":"https://github.com/AgileVentures/TMA-client.git","svn_url":"https://github.com/AgileVentures/TMA-client","homepage":null,"size":451,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/17"},"html":{"href":"https://github.com/AgileVentures/TMA-client/pull/17"},"issue":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/issues/17"},"comments":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/statuses/3449cf2da7aca17cae19685c95e4ee468f8eb1be"}}}}