{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls/comments/59209553","id":59209553,"diff_hunk":"@@ -9,6 +9,19 @@\n         <div class=\"column-full\">\n             <div class=\"content-wrapper\">\n                 <h1 class=\"form-title\">Set up payment</h1>\n+\n+                {{#lastPayment.next_url}}\n+                <div class=\"outer\">\n+                    <h2>Last payment summary</h2>\n+\n+                    <p> Payment description: <strong id=\"last-payment-reference\">{{lastPayment.reference}}</strong></p>\n+                    <p> Payment reference: <strong id=\"last-payment-description\">{{lastPayment.description}}</strong> </p>\n+                    <p> Amount: <strong id=\"last-payment-amount\">{{lastPayment.amount}}</strong></p>\n+                    <div class=\"form-group\">\n+                        <a id=\"last-payment-resume\" class=\"button\" href=\"{{lastPayment.next_url}}\">Resume payment</a>\n+                    </div>\n+                </div>\n+                {{/lastPayment.next_url}}\n                 <div class=\"payment-summary\">\n                     <div class=\"inner\">\n                         <h2>Payment summary</h2>","path":"app/views/proceed.html","position":19,"original_position":19,"commit_id":"2fba2ca59d72ef04c6aa098f1a09af6b508781e4","original_commit_id":"2fba2ca59d72ef04c6aa098f1a09af6b508781e4","user":{"login":"imranbohoran","id":2048844,"avatar_url":"https://avatars.githubusercontent.com/u/2048844?v=3","gravatar_id":"","url":"https://api.github.com/users/imranbohoran","html_url":"https://github.com/imranbohoran","followers_url":"https://api.github.com/users/imranbohoran/followers","following_url":"https://api.github.com/users/imranbohoran/following{/other_user}","gists_url":"https://api.github.com/users/imranbohoran/gists{/gist_id}","starred_url":"https://api.github.com/users/imranbohoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imranbohoran/subscriptions","organizations_url":"https://api.github.com/users/imranbohoran/orgs","repos_url":"https://api.github.com/users/imranbohoran/repos","events_url":"https://api.github.com/users/imranbohoran/events{/privacy}","received_events_url":"https://api.github.com/users/imranbohoran/received_events","type":"User","site_admin":false},"body":"This is not necessarily something to do with this PR, but given its touching some of the code in this area, I can't see anywhere in the code that is setting payment.serviceNameCapitalised as used in this html. It's not breaking anything apart from nothing shown up and broken code hanging around.","created_at":"2016-04-11T14:08:35Z","updated_at":"2016-04-11T14:08:35Z","html_url":"https://github.com/alphagov/pay-sample-integration/pull/17#discussion_r59209553","pull_request_url":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls/comments/59209553"},"html":{"href":"https://github.com/alphagov/pay-sample-integration/pull/17#discussion_r59209553"},"pull_request":{"href":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls/17","id":65818319,"html_url":"https://github.com/alphagov/pay-sample-integration/pull/17","diff_url":"https://github.com/alphagov/pay-sample-integration/pull/17.diff","patch_url":"https://github.com/alphagov/pay-sample-integration/pull/17.patch","issue_url":"https://api.github.com/repos/alphagov/pay-sample-integration/issues/17","number":17,"state":"open","locked":false,"title":"PP-210/enable resume of payments [REVIEW ONLY]","user":{"login":"ckalista","id":138029,"avatar_url":"https://avatars.githubusercontent.com/u/138029?v=3","gravatar_id":"","url":"https://api.github.com/users/ckalista","html_url":"https://github.com/ckalista","followers_url":"https://api.github.com/users/ckalista/followers","following_url":"https://api.github.com/users/ckalista/following{/other_user}","gists_url":"https://api.github.com/users/ckalista/gists{/gist_id}","starred_url":"https://api.github.com/users/ckalista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckalista/subscriptions","organizations_url":"https://api.github.com/users/ckalista/orgs","repos_url":"https://api.github.com/users/ckalista/repos","events_url":"https://api.github.com/users/ckalista/events{/privacy}","received_events_url":"https://api.github.com/users/ckalista/received_events","type":"User","site_admin":false},"body":"- Store the payment_id of last payment that has been created.\r\n- Show the last payment that has been created if it can be resumed i.e. if the charge object retrieved from the connector has a next_url.\r\n- Extract the currency format in its own module.","created_at":"2016-04-08T17:15:45Z","updated_at":"2016-04-11T14:08:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35932bcc1c4e11b07163fa0198e2121b97dbae45","assignee":{"login":"imranbohoran","id":2048844,"avatar_url":"https://avatars.githubusercontent.com/u/2048844?v=3","gravatar_id":"","url":"https://api.github.com/users/imranbohoran","html_url":"https://github.com/imranbohoran","followers_url":"https://api.github.com/users/imranbohoran/followers","following_url":"https://api.github.com/users/imranbohoran/following{/other_user}","gists_url":"https://api.github.com/users/imranbohoran/gists{/gist_id}","starred_url":"https://api.github.com/users/imranbohoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imranbohoran/subscriptions","organizations_url":"https://api.github.com/users/imranbohoran/orgs","repos_url":"https://api.github.com/users/imranbohoran/repos","events_url":"https://api.github.com/users/imranbohoran/events{/privacy}","received_events_url":"https://api.github.com/users/imranbohoran/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls/17/commits","review_comments_url":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls/17/comments","review_comment_url":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/pay-sample-integration/issues/17/comments","statuses_url":"https://api.github.com/repos/alphagov/pay-sample-integration/statuses/2fba2ca59d72ef04c6aa098f1a09af6b508781e4","head":{"label":"alphagov:PP-210/public-api-resume-payment","ref":"PP-210/public-api-resume-payment","sha":"2fba2ca59d72ef04c6aa098f1a09af6b508781e4","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":48436512,"name":"pay-sample-integration","full_name":"alphagov/pay-sample-integration","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/pay-sample-integration","description":"Sample service code that integrates with GOV.UK Pay","fork":false,"url":"https://api.github.com/repos/alphagov/pay-sample-integration","forks_url":"https://api.github.com/repos/alphagov/pay-sample-integration/forks","keys_url":"https://api.github.com/repos/alphagov/pay-sample-integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/pay-sample-integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/pay-sample-integration/teams","hooks_url":"https://api.github.com/repos/alphagov/pay-sample-integration/hooks","issue_events_url":"https://api.github.com/repos/alphagov/pay-sample-integration/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/pay-sample-integration/events","assignees_url":"https://api.github.com/repos/alphagov/pay-sample-integration/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/pay-sample-integration/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/pay-sample-integration/tags","blobs_url":"https://api.github.com/repos/alphagov/pay-sample-integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/pay-sample-integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/pay-sample-integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/pay-sample-integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/pay-sample-integration/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/pay-sample-integration/languages","stargazers_url":"https://api.github.com/repos/alphagov/pay-sample-integration/stargazers","contributors_url":"https://api.github.com/repos/alphagov/pay-sample-integration/contributors","subscribers_url":"https://api.github.com/repos/alphagov/pay-sample-integration/subscribers","subscription_url":"https://api.github.com/repos/alphagov/pay-sample-integration/subscription","commits_url":"https://api.github.com/repos/alphagov/pay-sample-integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/pay-sample-integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/pay-sample-integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/pay-sample-integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/pay-sample-integration/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/pay-sample-integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/pay-sample-integration/merges","archive_url":"https://api.github.com/repos/alphagov/pay-sample-integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/pay-sample-integration/downloads","issues_url":"https://api.github.com/repos/alphagov/pay-sample-integration/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/pay-sample-integration/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/pay-sample-integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/pay-sample-integration/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/pay-sample-integration/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/pay-sample-integration/deployments","created_at":"2015-12-22T14:29:58Z","updated_at":"2016-01-11T10:15:06Z","pushed_at":"2016-04-08T17:15:45Z","git_url":"git://github.com/alphagov/pay-sample-integration.git","ssh_url":"git@github.com:alphagov/pay-sample-integration.git","clone_url":"https://github.com/alphagov/pay-sample-integration.git","svn_url":"https://github.com/alphagov/pay-sample-integration","homepage":null,"size":147,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"b5fab9990d4ba554469990d25cff884c6a587605","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":48436512,"name":"pay-sample-integration","full_name":"alphagov/pay-sample-integration","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/pay-sample-integration","description":"Sample service code that integrates with GOV.UK Pay","fork":false,"url":"https://api.github.com/repos/alphagov/pay-sample-integration","forks_url":"https://api.github.com/repos/alphagov/pay-sample-integration/forks","keys_url":"https://api.github.com/repos/alphagov/pay-sample-integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/pay-sample-integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/pay-sample-integration/teams","hooks_url":"https://api.github.com/repos/alphagov/pay-sample-integration/hooks","issue_events_url":"https://api.github.com/repos/alphagov/pay-sample-integration/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/pay-sample-integration/events","assignees_url":"https://api.github.com/repos/alphagov/pay-sample-integration/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/pay-sample-integration/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/pay-sample-integration/tags","blobs_url":"https://api.github.com/repos/alphagov/pay-sample-integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/pay-sample-integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/pay-sample-integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/pay-sample-integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/pay-sample-integration/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/pay-sample-integration/languages","stargazers_url":"https://api.github.com/repos/alphagov/pay-sample-integration/stargazers","contributors_url":"https://api.github.com/repos/alphagov/pay-sample-integration/contributors","subscribers_url":"https://api.github.com/repos/alphagov/pay-sample-integration/subscribers","subscription_url":"https://api.github.com/repos/alphagov/pay-sample-integration/subscription","commits_url":"https://api.github.com/repos/alphagov/pay-sample-integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/pay-sample-integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/pay-sample-integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/pay-sample-integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/pay-sample-integration/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/pay-sample-integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/pay-sample-integration/merges","archive_url":"https://api.github.com/repos/alphagov/pay-sample-integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/pay-sample-integration/downloads","issues_url":"https://api.github.com/repos/alphagov/pay-sample-integration/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/pay-sample-integration/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/pay-sample-integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/pay-sample-integration/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/pay-sample-integration/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/pay-sample-integration/deployments","created_at":"2015-12-22T14:29:58Z","updated_at":"2016-01-11T10:15:06Z","pushed_at":"2016-04-08T17:15:45Z","git_url":"git://github.com/alphagov/pay-sample-integration.git","ssh_url":"git@github.com:alphagov/pay-sample-integration.git","clone_url":"https://github.com/alphagov/pay-sample-integration.git","svn_url":"https://github.com/alphagov/pay-sample-integration","homepage":null,"size":147,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls/17"},"html":{"href":"https://github.com/alphagov/pay-sample-integration/pull/17"},"issue":{"href":"https://api.github.com/repos/alphagov/pay-sample-integration/issues/17"},"comments":{"href":"https://api.github.com/repos/alphagov/pay-sample-integration/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/pay-sample-integration/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/pay-sample-integration/statuses/2fba2ca59d72ef04c6aa098f1a09af6b508781e4"}}}}