{"action":"created","issue":{"url":"https://api.github.com/repos/18F/micropurchase/issues/417","repository_url":"https://api.github.com/repos/18F/micropurchase","labels_url":"https://api.github.com/repos/18F/micropurchase/issues/417/labels{/name}","comments_url":"https://api.github.com/repos/18F/micropurchase/issues/417/comments","events_url":"https://api.github.com/repos/18F/micropurchase/issues/417/events","html_url":"https://github.com/18F/micropurchase/issues/417","id":148475012,"number":417,"title":"Payment request is submitted when auction is accepted","user":{"login":"mtorres253","id":100149,"avatar_url":"https://avatars.githubusercontent.com/u/100149?v=3","gravatar_id":"","url":"https://api.github.com/users/mtorres253","html_url":"https://github.com/mtorres253","followers_url":"https://api.github.com/users/mtorres253/followers","following_url":"https://api.github.com/users/mtorres253/following{/other_user}","gists_url":"https://api.github.com/users/mtorres253/gists{/gist_id}","starred_url":"https://api.github.com/users/mtorres253/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtorres253/subscriptions","organizations_url":"https://api.github.com/users/mtorres253/orgs","repos_url":"https://api.github.com/users/mtorres253/repos","events_url":"https://api.github.com/users/mtorres253/events{/privacy}","received_events_url":"https://api.github.com/users/mtorres253/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/18F/micropurchase/labels/user%20story","name":"user story","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-14T20:36:27Z","updated_at":"2016-04-18T16:31:39Z","closed_at":null,"body":"As an admin user, I want my p-card payments to be automated, so that I don't have to worry about making a mistake or forgetting to pay a vendor who wins an auction\r\n\r\nScenario: Payment request to CAP is made automatically when auction is accepted\r\nGiven I am a registered admin user\r\nAnd there is an auction with a winner\r\nWhen I accept the auction\r\nThen a payment request should be made via the Communicart (CAP) API to the correct card\r\nAnd if there are no errors \r\nThen I should see a success message (Congratulations! The payment request to [vendor] for [auction name] has been made.]\r\nAnd I should be taken to [whatever the current behavior is]\r\nAnd when I login to communicart, i can see that the payment request has been made\r\n\r\nNotes: Start with staging, so that we can make sure the loop is working, then deploy to production when C2 deploys their API to production"},"comment":{"url":"https://api.github.com/repos/18F/micropurchase/issues/comments/211459776","html_url":"https://github.com/18F/micropurchase/issues/417#issuecomment-211459776","issue_url":"https://api.github.com/repos/18F/micropurchase/issues/417","id":211459776,"user":{"login":"gemfarmer","id":4803473,"avatar_url":"https://avatars.githubusercontent.com/u/4803473?v=3","gravatar_id":"","url":"https://api.github.com/users/gemfarmer","html_url":"https://github.com/gemfarmer","followers_url":"https://api.github.com/users/gemfarmer/followers","following_url":"https://api.github.com/users/gemfarmer/following{/other_user}","gists_url":"https://api.github.com/users/gemfarmer/gists{/gist_id}","starred_url":"https://api.github.com/users/gemfarmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemfarmer/subscriptions","organizations_url":"https://api.github.com/users/gemfarmer/orgs","repos_url":"https://api.github.com/users/gemfarmer/repos","events_url":"https://api.github.com/users/gemfarmer/events{/privacy}","received_events_url":"https://api.github.com/users/gemfarmer/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T16:31:39Z","updated_at":"2016-04-18T16:31:39Z","body":"@mtorres253, @jessieay has been working on Communicart, so might be helpful with this once she is onboarded"}}