{"action":"created","issue":{"url":"https://api.github.com/repos/hefan/spree_sofort/issues/16","repository_url":"https://api.github.com/repos/hefan/spree_sofort","labels_url":"https://api.github.com/repos/hefan/spree_sofort/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/hefan/spree_sofort/issues/16/comments","events_url":"https://api.github.com/repos/hefan/spree_sofort/issues/16/events","html_url":"https://github.com/hefan/spree_sofort/pull/16","id":302207909,"number":16,"title":"complete order before auto capture","user":{"login":"jungbunzlav","id":1182999,"avatar_url":"https://avatars2.githubusercontent.com/u/1182999?v=4","gravatar_id":"","url":"https://api.github.com/users/jungbunzlav","html_url":"https://github.com/jungbunzlav","followers_url":"https://api.github.com/users/jungbunzlav/followers","following_url":"https://api.github.com/users/jungbunzlav/following{/other_user}","gists_url":"https://api.github.com/users/jungbunzlav/gists{/gist_id}","starred_url":"https://api.github.com/users/jungbunzlav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jungbunzlav/subscriptions","organizations_url":"https://api.github.com/users/jungbunzlav/orgs","repos_url":"https://api.github.com/users/jungbunzlav/repos","events_url":"https://api.github.com/users/jungbunzlav/events{/privacy}","received_events_url":"https://api.github.com/users/jungbunzlav/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-05T08:22:43Z","updated_at":"2018-03-05T17:45:39Z","closed_at":"2018-03-05T17:45:25Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/hefan/spree_sofort/pulls/16","html_url":"https://github.com/hefan/spree_sofort/pull/16","diff_url":"https://github.com/hefan/spree_sofort/pull/16.diff","patch_url":"https://github.com/hefan/spree_sofort/pull/16.patch"},"body":"At the moment an order will stay in the state `confirm` when auto capture is enabled. As a result the order cannot be shipped.\r\n\r\nI assume the call `sofort_payment.capture!` is resetting the before set order state because it is not saved before the `capture!` call.\r\n\r\nThis change will save the order before the `capture!` method is called."},"comment":{"url":"https://api.github.com/repos/hefan/spree_sofort/issues/comments/370502543","html_url":"https://github.com/hefan/spree_sofort/pull/16#issuecomment-370502543","issue_url":"https://api.github.com/repos/hefan/spree_sofort/issues/16","id":370502543,"user":{"login":"hefan","id":728284,"avatar_url":"https://avatars1.githubusercontent.com/u/728284?v=4","gravatar_id":"","url":"https://api.github.com/users/hefan","html_url":"https://github.com/hefan","followers_url":"https://api.github.com/users/hefan/followers","following_url":"https://api.github.com/users/hefan/following{/other_user}","gists_url":"https://api.github.com/users/hefan/gists{/gist_id}","starred_url":"https://api.github.com/users/hefan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hefan/subscriptions","organizations_url":"https://api.github.com/users/hefan/orgs","repos_url":"https://api.github.com/users/hefan/repos","events_url":"https://api.github.com/users/hefan/events{/privacy}","received_events_url":"https://api.github.com/users/hefan/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T17:45:39Z","updated_at":"2018-03-05T17:45:39Z","author_association":"OWNER","body":"sorry just forgot"}}
{"actor":{"display_login":"hefan"}}