{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/webpay/pulls/comments/27516869","id":27516869,"diff_hunk":"@@ -427,6 +428,13 @@ def trans_start_url(request):\n         log.info('async call got payment URL {url} for trans {tr}'\n                  .format(url=url, tr=trans))\n         data['url'] = url\n+\n+    if trans and trans['status'] == constants.STATUS_ERRORED:\n+        statsd.incr('purchase.payment_time.errored')\n+        log.exception('Purchase configuration failed: {0} with status {1}'\n+                      'with status {1}'.format(trans_id, trans['status']))\n+        return system_error(request, code=getattr(msg, trans['status_reason']))","path":"webpay/pay/views.py","position":35,"original_position":35,"commit_id":"4b5a255be101eaeea014e33717da44a822003714","original_commit_id":"4b5a255be101eaeea014e33717da44a822003714","user":{"login":"kumar303","id":55398,"avatar_url":"https://avatars.githubusercontent.com/u/55398?v=3","gravatar_id":"","url":"https://api.github.com/users/kumar303","html_url":"https://github.com/kumar303","followers_url":"https://api.github.com/users/kumar303/followers","following_url":"https://api.github.com/users/kumar303/following{/other_user}","gists_url":"https://api.github.com/users/kumar303/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar303/subscriptions","organizations_url":"https://api.github.com/users/kumar303/orgs","repos_url":"https://api.github.com/users/kumar303/repos","events_url":"https://api.github.com/users/kumar303/events{/privacy}","received_events_url":"https://api.github.com/users/kumar303/received_events","type":"User","site_admin":false},"body":"I think ``status_reason`` could be None here, right? This will raise an AttributeError if so.","created_at":"2015-03-31T19:59:38Z","updated_at":"2015-03-31T19:59:38Z","html_url":"https://github.com/mozilla/webpay/pull/619#discussion_r27516869","pull_request_url":"https://api.github.com/repos/mozilla/webpay/pulls/619","_links":{"self":{"href":"https://api.github.com/repos/mozilla/webpay/pulls/comments/27516869"},"html":{"href":"https://github.com/mozilla/webpay/pull/619#discussion_r27516869"},"pull_request":{"href":"https://api.github.com/repos/mozilla/webpay/pulls/619"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/webpay/pulls/619","id":32214534,"html_url":"https://github.com/mozilla/webpay/pull/619","diff_url":"https://github.com/mozilla/webpay/pull/619.diff","patch_url":"https://github.com/mozilla/webpay/pull/619.patch","issue_url":"https://api.github.com/repos/mozilla/webpay/issues/619","number":619,"state":"open","locked":false,"title":"simple fallback to posting to solitude (bug 1140615)","user":{"login":"andymckay","id":74699,"avatar_url":"https://avatars.githubusercontent.com/u/74699?v=3","gravatar_id":"","url":"https://api.github.com/users/andymckay","html_url":"https://github.com/andymckay","followers_url":"https://api.github.com/users/andymckay/followers","following_url":"https://api.github.com/users/andymckay/following{/other_user}","gists_url":"https://api.github.com/users/andymckay/gists{/gist_id}","starred_url":"https://api.github.com/users/andymckay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymckay/subscriptions","organizations_url":"https://api.github.com/users/andymckay/orgs","repos_url":"https://api.github.com/users/andymckay/repos","events_url":"https://api.github.com/users/andymckay/events{/privacy}","received_events_url":"https://api.github.com/users/andymckay/received_events","type":"User","site_admin":false},"body":"* example results in: https://gist.github.com/andymckay/0fa29a01e4552c2f4086\r\n* needs the matching: https://github.com/mozilla/solitude/pull/322\r\n* will need: https://bugzilla.mozilla.org/show_bug.cgi?id=1149095 so users can see the benefit","created_at":"2015-03-30T10:33:51Z","updated_at":"2015-03-31T19:59:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd012a05d813fb4201077293f01c328d46a08c2c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/webpay/pulls/619/commits","review_comments_url":"https://api.github.com/repos/mozilla/webpay/pulls/619/comments","review_comment_url":"https://api.github.com/repos/mozilla/webpay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/webpay/issues/619/comments","statuses_url":"https://api.github.com/repos/mozilla/webpay/statuses/4b5a255be101eaeea014e33717da44a822003714","head":{"label":"andymckay:1140615-reboot","ref":"1140615-reboot","sha":"4b5a255be101eaeea014e33717da44a822003714","user":{"login":"andymckay","id":74699,"avatar_url":"https://avatars.githubusercontent.com/u/74699?v=3","gravatar_id":"","url":"https://api.github.com/users/andymckay","html_url":"https://github.com/andymckay","followers_url":"https://api.github.com/users/andymckay/followers","following_url":"https://api.github.com/users/andymckay/following{/other_user}","gists_url":"https://api.github.com/users/andymckay/gists{/gist_id}","starred_url":"https://api.github.com/users/andymckay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymckay/subscriptions","organizations_url":"https://api.github.com/users/andymckay/orgs","repos_url":"https://api.github.com/users/andymckay/repos","events_url":"https://api.github.com/users/andymckay/events{/privacy}","received_events_url":"https://api.github.com/users/andymckay/received_events","type":"User","site_admin":false},"repo":{"id":23588431,"name":"webpay","full_name":"andymckay/webpay","owner":{"login":"andymckay","id":74699,"avatar_url":"https://avatars.githubusercontent.com/u/74699?v=3","gravatar_id":"","url":"https://api.github.com/users/andymckay","html_url":"https://github.com/andymckay","followers_url":"https://api.github.com/users/andymckay/followers","following_url":"https://api.github.com/users/andymckay/following{/other_user}","gists_url":"https://api.github.com/users/andymckay/gists{/gist_id}","starred_url":"https://api.github.com/users/andymckay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymckay/subscriptions","organizations_url":"https://api.github.com/users/andymckay/orgs","repos_url":"https://api.github.com/users/andymckay/repos","events_url":"https://api.github.com/users/andymckay/events{/privacy}","received_events_url":"https://api.github.com/users/andymckay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andymckay/webpay","description":"Webpay is an implementation of the WebPaymentProvider spec","fork":true,"url":"https://api.github.com/repos/andymckay/webpay","forks_url":"https://api.github.com/repos/andymckay/webpay/forks","keys_url":"https://api.github.com/repos/andymckay/webpay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andymckay/webpay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andymckay/webpay/teams","hooks_url":"https://api.github.com/repos/andymckay/webpay/hooks","issue_events_url":"https://api.github.com/repos/andymckay/webpay/issues/events{/number}","events_url":"https://api.github.com/repos/andymckay/webpay/events","assignees_url":"https://api.github.com/repos/andymckay/webpay/assignees{/user}","branches_url":"https://api.github.com/repos/andymckay/webpay/branches{/branch}","tags_url":"https://api.github.com/repos/andymckay/webpay/tags","blobs_url":"https://api.github.com/repos/andymckay/webpay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andymckay/webpay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andymckay/webpay/git/refs{/sha}","trees_url":"https://api.github.com/repos/andymckay/webpay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andymckay/webpay/statuses/{sha}","languages_url":"https://api.github.com/repos/andymckay/webpay/languages","stargazers_url":"https://api.github.com/repos/andymckay/webpay/stargazers","contributors_url":"https://api.github.com/repos/andymckay/webpay/contributors","subscribers_url":"https://api.github.com/repos/andymckay/webpay/subscribers","subscription_url":"https://api.github.com/repos/andymckay/webpay/subscription","commits_url":"https://api.github.com/repos/andymckay/webpay/commits{/sha}","git_commits_url":"https://api.github.com/repos/andymckay/webpay/git/commits{/sha}","comments_url":"https://api.github.com/repos/andymckay/webpay/comments{/number}","issue_comment_url":"https://api.github.com/repos/andymckay/webpay/issues/comments{/number}","contents_url":"https://api.github.com/repos/andymckay/webpay/contents/{+path}","compare_url":"https://api.github.com/repos/andymckay/webpay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andymckay/webpay/merges","archive_url":"https://api.github.com/repos/andymckay/webpay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andymckay/webpay/downloads","issues_url":"https://api.github.com/repos/andymckay/webpay/issues{/number}","pulls_url":"https://api.github.com/repos/andymckay/webpay/pulls{/number}","milestones_url":"https://api.github.com/repos/andymckay/webpay/milestones{/number}","notifications_url":"https://api.github.com/repos/andymckay/webpay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andymckay/webpay/labels{/name}","releases_url":"https://api.github.com/repos/andymckay/webpay/releases{/id}","created_at":"2014-09-02T17:29:56Z","updated_at":"2014-10-03T22:11:14Z","pushed_at":"2015-03-31T15:37:16Z","git_url":"git://github.com/andymckay/webpay.git","ssh_url":"git@github.com:andymckay/webpay.git","clone_url":"https://github.com/andymckay/webpay.git","svn_url":"https://github.com/andymckay/webpay","homepage":"","size":47919,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"mozilla:master","ref":"master","sha":"cc17105880e402bda21a9745f5dcf8b0ef419c54","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":6037696,"name":"webpay","full_name":"mozilla/webpay","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/webpay","description":"Webpay is an implementation of the WebPaymentProvider spec","fork":false,"url":"https://api.github.com/repos/mozilla/webpay","forks_url":"https://api.github.com/repos/mozilla/webpay/forks","keys_url":"https://api.github.com/repos/mozilla/webpay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/webpay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/webpay/teams","hooks_url":"https://api.github.com/repos/mozilla/webpay/hooks","issue_events_url":"https://api.github.com/repos/mozilla/webpay/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/webpay/events","assignees_url":"https://api.github.com/repos/mozilla/webpay/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/webpay/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/webpay/tags","blobs_url":"https://api.github.com/repos/mozilla/webpay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/webpay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/webpay/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/webpay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/webpay/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/webpay/languages","stargazers_url":"https://api.github.com/repos/mozilla/webpay/stargazers","contributors_url":"https://api.github.com/repos/mozilla/webpay/contributors","subscribers_url":"https://api.github.com/repos/mozilla/webpay/subscribers","subscription_url":"https://api.github.com/repos/mozilla/webpay/subscription","commits_url":"https://api.github.com/repos/mozilla/webpay/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/webpay/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/webpay/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/webpay/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/webpay/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/webpay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/webpay/merges","archive_url":"https://api.github.com/repos/mozilla/webpay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/webpay/downloads","issues_url":"https://api.github.com/repos/mozilla/webpay/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/webpay/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/webpay/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/webpay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/webpay/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/webpay/releases{/id}","created_at":"2012-10-01T23:10:24Z","updated_at":"2015-03-30T20:15:17Z","pushed_at":"2015-03-31T15:37:17Z","git_url":"git://github.com/mozilla/webpay.git","ssh_url":"git@github.com:mozilla/webpay.git","clone_url":"https://github.com/mozilla/webpay.git","svn_url":"https://github.com/mozilla/webpay","homepage":"","size":63852,"stargazers_count":36,"watchers_count":36,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":2,"forks":52,"open_issues":2,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/webpay/pulls/619"},"html":{"href":"https://github.com/mozilla/webpay/pull/619"},"issue":{"href":"https://api.github.com/repos/mozilla/webpay/issues/619"},"comments":{"href":"https://api.github.com/repos/mozilla/webpay/issues/619/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/webpay/pulls/619/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/webpay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/webpay/pulls/619/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/webpay/statuses/4b5a255be101eaeea014e33717da44a822003714"}}}}