{"action":"created","issue":{"url":"https://api.github.com/repos/solidusio/solidus/issues/1289","repository_url":"https://api.github.com/repos/solidusio/solidus","labels_url":"https://api.github.com/repos/solidusio/solidus/issues/1289/labels{/name}","comments_url":"https://api.github.com/repos/solidusio/solidus/issues/1289/comments","events_url":"https://api.github.com/repos/solidusio/solidus/issues/1289/events","html_url":"https://github.com/solidusio/solidus/pull/1289","id":163260490,"number":1289,"title":"Payment Factory should associate source with User","user":{"login":"stewart","id":489142,"avatar_url":"https://avatars.githubusercontent.com/u/489142?v=3","gravatar_id":"","url":"https://api.github.com/users/stewart","html_url":"https://github.com/stewart","followers_url":"https://api.github.com/users/stewart/followers","following_url":"https://api.github.com/users/stewart/following{/other_user}","gists_url":"https://api.github.com/users/stewart/gists{/gist_id}","starred_url":"https://api.github.com/users/stewart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stewart/subscriptions","organizations_url":"https://api.github.com/users/stewart/orgs","repos_url":"https://api.github.com/users/stewart/repos","events_url":"https://api.github.com/users/stewart/events{/privacy}","received_events_url":"https://api.github.com/users/stewart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-30T20:32:16Z","updated_at":"2016-07-04T13:29:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/solidusio/solidus/pulls/1289","html_url":"https://github.com/solidusio/solidus/pull/1289","diff_url":"https://github.com/solidusio/solidus/pull/1289.diff","patch_url":"https://github.com/solidusio/solidus/pull/1289.patch"},"body":"In the process of creating a Payment via the factories, a new CreditCard\r\nrecord is created, but not associated with any user.\r\n\r\nIf we create a Payment via one of the Order factories, this can be quite\r\nconfusing, as the created Order may have a payment, but the created\r\nCredit Card associated with the payment is not associated with the User\r\nthat created the order.\r\n\r\nTo correct this, we can provide the order's associated user to the\r\ncredit card we create as the payment source.\r\n"},"comment":{"url":"https://api.github.com/repos/solidusio/solidus/issues/comments/230290947","html_url":"https://github.com/solidusio/solidus/pull/1289#issuecomment-230290947","issue_url":"https://api.github.com/repos/solidusio/solidus/issues/1289","id":230290947,"user":{"login":"gmacdougall","id":764390,"avatar_url":"https://avatars.githubusercontent.com/u/764390?v=3","gravatar_id":"","url":"https://api.github.com/users/gmacdougall","html_url":"https://github.com/gmacdougall","followers_url":"https://api.github.com/users/gmacdougall/followers","following_url":"https://api.github.com/users/gmacdougall/following{/other_user}","gists_url":"https://api.github.com/users/gmacdougall/gists{/gist_id}","starred_url":"https://api.github.com/users/gmacdougall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmacdougall/subscriptions","organizations_url":"https://api.github.com/users/gmacdougall/orgs","repos_url":"https://api.github.com/users/gmacdougall/repos","events_url":"https://api.github.com/users/gmacdougall/events{/privacy}","received_events_url":"https://api.github.com/users/gmacdougall/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T13:29:08Z","updated_at":"2016-07-04T13:29:08Z","body":":+1: Thanks Andrew"}}
{"actor":{"display_login":"gmacdougall"}}