{"action":"created","comment":{"url":"https://api.github.com/repos/robbielane/lens_lease/pulls/comments/45150134","id":45150134,"diff_hunk":"@@ -0,0 +1,29 @@\n+class ChargesController < ApplicationController\n+  def new\n+  end\n+\n+  def create\n+    @amount = (@cart.total_price * 100)\n+\n+    customer = Stripe::Customer.create(\n+      :email => params[:stripeEmail],\n+      :source  => params[:stripeToken]\n+    )\n+\n+    charge = Stripe::Charge.create(\n+      :customer    => customer.id,\n+      :amount      => @amount,\n+      :description => 'Rails Stripe customer',\n+      :currency    => 'usd'\n+    )\n+\n+  RentalCreator.create_rental(@cart, session)","path":"app/controllers/charges_controller.rb","position":20,"original_position":20,"commit_id":"a20cc41e09964d3db2cdd7e91b8b10515061d258","original_commit_id":"a20cc41e09964d3db2cdd7e91b8b10515061d258","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Inconsistent indentation detected.","created_at":"2015-11-18T01:48:05Z","updated_at":"2015-11-18T01:48:05Z","html_url":"https://github.com/robbielane/lens_lease/pull/65#discussion_r45150134","pull_request_url":"https://api.github.com/repos/robbielane/lens_lease/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/robbielane/lens_lease/pulls/comments/45150134"},"html":{"href":"https://github.com/robbielane/lens_lease/pull/65#discussion_r45150134"},"pull_request":{"href":"https://api.github.com/repos/robbielane/lens_lease/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/robbielane/lens_lease/pulls/65","id":51032235,"html_url":"https://github.com/robbielane/lens_lease/pull/65","diff_url":"https://github.com/robbielane/lens_lease/pull/65.diff","patch_url":"https://github.com/robbielane/lens_lease/pull/65.patch","issue_url":"https://api.github.com/repos/robbielane/lens_lease/issues/65","number":65,"state":"open","locked":false,"title":"implement stripe","user":{"login":"robbielane","id":12688159,"avatar_url":"https://avatars.githubusercontent.com/u/12688159?v=3","gravatar_id":"","url":"https://api.github.com/users/robbielane","html_url":"https://github.com/robbielane","followers_url":"https://api.github.com/users/robbielane/followers","following_url":"https://api.github.com/users/robbielane/following{/other_user}","gists_url":"https://api.github.com/users/robbielane/gists{/gist_id}","starred_url":"https://api.github.com/users/robbielane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbielane/subscriptions","organizations_url":"https://api.github.com/users/robbielane/orgs","repos_url":"https://api.github.com/users/robbielane/repos","events_url":"https://api.github.com/users/robbielane/events{/privacy}","received_events_url":"https://api.github.com/users/robbielane/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-18T01:47:50Z","updated_at":"2015-11-18T01:48:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27fe99c9979f3d999ee49e04d1117ded5a88a634","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/robbielane/lens_lease/pulls/65/commits","review_comments_url":"https://api.github.com/repos/robbielane/lens_lease/pulls/65/comments","review_comment_url":"https://api.github.com/repos/robbielane/lens_lease/pulls/comments{/number}","comments_url":"https://api.github.com/repos/robbielane/lens_lease/issues/65/comments","statuses_url":"https://api.github.com/repos/robbielane/lens_lease/statuses/a20cc41e09964d3db2cdd7e91b8b10515061d258","head":{"label":"robbielane:40-User-can-pay-with-stripe","ref":"40-User-can-pay-with-stripe","sha":"a20cc41e09964d3db2cdd7e91b8b10515061d258","user":{"login":"robbielane","id":12688159,"avatar_url":"https://avatars.githubusercontent.com/u/12688159?v=3","gravatar_id":"","url":"https://api.github.com/users/robbielane","html_url":"https://github.com/robbielane","followers_url":"https://api.github.com/users/robbielane/followers","following_url":"https://api.github.com/users/robbielane/following{/other_user}","gists_url":"https://api.github.com/users/robbielane/gists{/gist_id}","starred_url":"https://api.github.com/users/robbielane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbielane/subscriptions","organizations_url":"https://api.github.com/users/robbielane/orgs","repos_url":"https://api.github.com/users/robbielane/repos","events_url":"https://api.github.com/users/robbielane/events{/privacy}","received_events_url":"https://api.github.com/users/robbielane/received_events","type":"User","site_admin":false},"repo":{"id":45855766,"name":"lens_lease","full_name":"robbielane/lens_lease","owner":{"login":"robbielane","id":12688159,"avatar_url":"https://avatars.githubusercontent.com/u/12688159?v=3","gravatar_id":"","url":"https://api.github.com/users/robbielane","html_url":"https://github.com/robbielane","followers_url":"https://api.github.com/users/robbielane/followers","following_url":"https://api.github.com/users/robbielane/following{/other_user}","gists_url":"https://api.github.com/users/robbielane/gists{/gist_id}","starred_url":"https://api.github.com/users/robbielane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbielane/subscriptions","organizations_url":"https://api.github.com/users/robbielane/orgs","repos_url":"https://api.github.com/users/robbielane/repos","events_url":"https://api.github.com/users/robbielane/events{/privacy}","received_events_url":"https://api.github.com/users/robbielane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robbielane/lens_lease","description":"","fork":false,"url":"https://api.github.com/repos/robbielane/lens_lease","forks_url":"https://api.github.com/repos/robbielane/lens_lease/forks","keys_url":"https://api.github.com/repos/robbielane/lens_lease/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robbielane/lens_lease/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robbielane/lens_lease/teams","hooks_url":"https://api.github.com/repos/robbielane/lens_lease/hooks","issue_events_url":"https://api.github.com/repos/robbielane/lens_lease/issues/events{/number}","events_url":"https://api.github.com/repos/robbielane/lens_lease/events","assignees_url":"https://api.github.com/repos/robbielane/lens_lease/assignees{/user}","branches_url":"https://api.github.com/repos/robbielane/lens_lease/branches{/branch}","tags_url":"https://api.github.com/repos/robbielane/lens_lease/tags","blobs_url":"https://api.github.com/repos/robbielane/lens_lease/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robbielane/lens_lease/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robbielane/lens_lease/git/refs{/sha}","trees_url":"https://api.github.com/repos/robbielane/lens_lease/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robbielane/lens_lease/statuses/{sha}","languages_url":"https://api.github.com/repos/robbielane/lens_lease/languages","stargazers_url":"https://api.github.com/repos/robbielane/lens_lease/stargazers","contributors_url":"https://api.github.com/repos/robbielane/lens_lease/contributors","subscribers_url":"https://api.github.com/repos/robbielane/lens_lease/subscribers","subscription_url":"https://api.github.com/repos/robbielane/lens_lease/subscription","commits_url":"https://api.github.com/repos/robbielane/lens_lease/commits{/sha}","git_commits_url":"https://api.github.com/repos/robbielane/lens_lease/git/commits{/sha}","comments_url":"https://api.github.com/repos/robbielane/lens_lease/comments{/number}","issue_comment_url":"https://api.github.com/repos/robbielane/lens_lease/issues/comments{/number}","contents_url":"https://api.github.com/repos/robbielane/lens_lease/contents/{+path}","compare_url":"https://api.github.com/repos/robbielane/lens_lease/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robbielane/lens_lease/merges","archive_url":"https://api.github.com/repos/robbielane/lens_lease/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robbielane/lens_lease/downloads","issues_url":"https://api.github.com/repos/robbielane/lens_lease/issues{/number}","pulls_url":"https://api.github.com/repos/robbielane/lens_lease/pulls{/number}","milestones_url":"https://api.github.com/repos/robbielane/lens_lease/milestones{/number}","notifications_url":"https://api.github.com/repos/robbielane/lens_lease/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robbielane/lens_lease/labels{/name}","releases_url":"https://api.github.com/repos/robbielane/lens_lease/releases{/id}","created_at":"2015-11-09T17:50:14Z","updated_at":"2015-11-09T17:51:45Z","pushed_at":"2015-11-18T01:47:50Z","git_url":"git://github.com/robbielane/lens_lease.git","ssh_url":"git@github.com:robbielane/lens_lease.git","clone_url":"https://github.com/robbielane/lens_lease.git","svn_url":"https://github.com/robbielane/lens_lease","homepage":null,"size":341,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"robbielane:master","ref":"master","sha":"8c7d4686d8d19ea44edf0431592e7d8345fa6f58","user":{"login":"robbielane","id":12688159,"avatar_url":"https://avatars.githubusercontent.com/u/12688159?v=3","gravatar_id":"","url":"https://api.github.com/users/robbielane","html_url":"https://github.com/robbielane","followers_url":"https://api.github.com/users/robbielane/followers","following_url":"https://api.github.com/users/robbielane/following{/other_user}","gists_url":"https://api.github.com/users/robbielane/gists{/gist_id}","starred_url":"https://api.github.com/users/robbielane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbielane/subscriptions","organizations_url":"https://api.github.com/users/robbielane/orgs","repos_url":"https://api.github.com/users/robbielane/repos","events_url":"https://api.github.com/users/robbielane/events{/privacy}","received_events_url":"https://api.github.com/users/robbielane/received_events","type":"User","site_admin":false},"repo":{"id":45855766,"name":"lens_lease","full_name":"robbielane/lens_lease","owner":{"login":"robbielane","id":12688159,"avatar_url":"https://avatars.githubusercontent.com/u/12688159?v=3","gravatar_id":"","url":"https://api.github.com/users/robbielane","html_url":"https://github.com/robbielane","followers_url":"https://api.github.com/users/robbielane/followers","following_url":"https://api.github.com/users/robbielane/following{/other_user}","gists_url":"https://api.github.com/users/robbielane/gists{/gist_id}","starred_url":"https://api.github.com/users/robbielane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbielane/subscriptions","organizations_url":"https://api.github.com/users/robbielane/orgs","repos_url":"https://api.github.com/users/robbielane/repos","events_url":"https://api.github.com/users/robbielane/events{/privacy}","received_events_url":"https://api.github.com/users/robbielane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robbielane/lens_lease","description":"","fork":false,"url":"https://api.github.com/repos/robbielane/lens_lease","forks_url":"https://api.github.com/repos/robbielane/lens_lease/forks","keys_url":"https://api.github.com/repos/robbielane/lens_lease/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robbielane/lens_lease/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robbielane/lens_lease/teams","hooks_url":"https://api.github.com/repos/robbielane/lens_lease/hooks","issue_events_url":"https://api.github.com/repos/robbielane/lens_lease/issues/events{/number}","events_url":"https://api.github.com/repos/robbielane/lens_lease/events","assignees_url":"https://api.github.com/repos/robbielane/lens_lease/assignees{/user}","branches_url":"https://api.github.com/repos/robbielane/lens_lease/branches{/branch}","tags_url":"https://api.github.com/repos/robbielane/lens_lease/tags","blobs_url":"https://api.github.com/repos/robbielane/lens_lease/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robbielane/lens_lease/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robbielane/lens_lease/git/refs{/sha}","trees_url":"https://api.github.com/repos/robbielane/lens_lease/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robbielane/lens_lease/statuses/{sha}","languages_url":"https://api.github.com/repos/robbielane/lens_lease/languages","stargazers_url":"https://api.github.com/repos/robbielane/lens_lease/stargazers","contributors_url":"https://api.github.com/repos/robbielane/lens_lease/contributors","subscribers_url":"https://api.github.com/repos/robbielane/lens_lease/subscribers","subscription_url":"https://api.github.com/repos/robbielane/lens_lease/subscription","commits_url":"https://api.github.com/repos/robbielane/lens_lease/commits{/sha}","git_commits_url":"https://api.github.com/repos/robbielane/lens_lease/git/commits{/sha}","comments_url":"https://api.github.com/repos/robbielane/lens_lease/comments{/number}","issue_comment_url":"https://api.github.com/repos/robbielane/lens_lease/issues/comments{/number}","contents_url":"https://api.github.com/repos/robbielane/lens_lease/contents/{+path}","compare_url":"https://api.github.com/repos/robbielane/lens_lease/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robbielane/lens_lease/merges","archive_url":"https://api.github.com/repos/robbielane/lens_lease/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robbielane/lens_lease/downloads","issues_url":"https://api.github.com/repos/robbielane/lens_lease/issues{/number}","pulls_url":"https://api.github.com/repos/robbielane/lens_lease/pulls{/number}","milestones_url":"https://api.github.com/repos/robbielane/lens_lease/milestones{/number}","notifications_url":"https://api.github.com/repos/robbielane/lens_lease/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robbielane/lens_lease/labels{/name}","releases_url":"https://api.github.com/repos/robbielane/lens_lease/releases{/id}","created_at":"2015-11-09T17:50:14Z","updated_at":"2015-11-09T17:51:45Z","pushed_at":"2015-11-18T01:47:50Z","git_url":"git://github.com/robbielane/lens_lease.git","ssh_url":"git@github.com:robbielane/lens_lease.git","clone_url":"https://github.com/robbielane/lens_lease.git","svn_url":"https://github.com/robbielane/lens_lease","homepage":null,"size":341,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/robbielane/lens_lease/pulls/65"},"html":{"href":"https://github.com/robbielane/lens_lease/pull/65"},"issue":{"href":"https://api.github.com/repos/robbielane/lens_lease/issues/65"},"comments":{"href":"https://api.github.com/repos/robbielane/lens_lease/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/robbielane/lens_lease/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/robbielane/lens_lease/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/robbielane/lens_lease/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/robbielane/lens_lease/statuses/a20cc41e09964d3db2cdd7e91b8b10515061d258"}}}}