{"action":"opened","issue":{"url":"https://api.github.com/repos/easydigitaldownloads/edd-auto-register/issues/34","repository_url":"https://api.github.com/repos/easydigitaldownloads/edd-auto-register","labels_url":"https://api.github.com/repos/easydigitaldownloads/edd-auto-register/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/easydigitaldownloads/edd-auto-register/issues/34/comments","events_url":"https://api.github.com/repos/easydigitaldownloads/edd-auto-register/issues/34/events","html_url":"https://github.com/easydigitaldownloads/edd-auto-register/issues/34","id":173204599,"number":34,"title":"Set the user ID on license keys generated by Software Licensing","user":{"login":"ericnicolaas","id":676582,"avatar_url":"https://avatars.githubusercontent.com/u/676582?v=3","gravatar_id":"","url":"https://api.github.com/users/ericnicolaas","html_url":"https://github.com/ericnicolaas","followers_url":"https://api.github.com/users/ericnicolaas/followers","following_url":"https://api.github.com/users/ericnicolaas/following{/other_user}","gists_url":"https://api.github.com/users/ericnicolaas/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnicolaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnicolaas/subscriptions","organizations_url":"https://api.github.com/users/ericnicolaas/orgs","repos_url":"https://api.github.com/users/ericnicolaas/repos","events_url":"https://api.github.com/users/ericnicolaas/events{/privacy}","received_events_url":"https://api.github.com/users/ericnicolaas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-25T13:35:00Z","updated_at":"2016-08-25T13:35:00Z","closed_at":null,"body":"When someone makes a purchase and you have Software Licensing installed, the behaviour I expected was that their licenses are correctly associated with the new user ID that is generated with EDD Auto Register. It appears that is not the case. \r\n\r\nOn closer inspection, the SL function that generates a license is called on the `edd_complete_purchase` hook. Auto Register adds the user ID on the `edd_insert_payment` hook. I'm guessing `edd_insert_payment` happens after `edd_complete_purchase`. \r\n\r\nThere are probably a few ways to solve this, but I'm going to push through a PR with a simple fix."}}
{"actor":{"display_login":"ericnicolaas"}}