{"action":"created","issue":{"url":"https://api.github.com/repos/richtabor/MerlinWP/issues/84","repository_url":"https://api.github.com/repos/richtabor/MerlinWP","labels_url":"https://api.github.com/repos/richtabor/MerlinWP/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/richtabor/MerlinWP/issues/84/comments","events_url":"https://api.github.com/repos/richtabor/MerlinWP/issues/84/events","html_url":"https://github.com/richtabor/MerlinWP/issues/84","id":306506334,"number":84,"title":"Example of a successfully implemented merlin_ajax_activate_license() filter","user":{"login":"richtabor","id":1813435,"avatar_url":"https://avatars2.githubusercontent.com/u/1813435?v=4","gravatar_id":"","url":"https://api.github.com/users/richtabor","html_url":"https://github.com/richtabor","followers_url":"https://api.github.com/users/richtabor/followers","following_url":"https://api.github.com/users/richtabor/following{/other_user}","gists_url":"https://api.github.com/users/richtabor/gists{/gist_id}","starred_url":"https://api.github.com/users/richtabor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richtabor/subscriptions","organizations_url":"https://api.github.com/users/richtabor/orgs","repos_url":"https://api.github.com/users/richtabor/repos","events_url":"https://api.github.com/users/richtabor/events{/privacy}","received_events_url":"https://api.github.com/users/richtabor/received_events","type":"User","site_admin":false},"labels":[{"id":656501002,"url":"https://api.github.com/repos/richtabor/MerlinWP/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"capuderg","id":9714134,"avatar_url":"https://avatars0.githubusercontent.com/u/9714134?v=4","gravatar_id":"","url":"https://api.github.com/users/capuderg","html_url":"https://github.com/capuderg","followers_url":"https://api.github.com/users/capuderg/followers","following_url":"https://api.github.com/users/capuderg/following{/other_user}","gists_url":"https://api.github.com/users/capuderg/gists{/gist_id}","starred_url":"https://api.github.com/users/capuderg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capuderg/subscriptions","organizations_url":"https://api.github.com/users/capuderg/orgs","repos_url":"https://api.github.com/users/capuderg/repos","events_url":"https://api.github.com/users/capuderg/events{/privacy}","received_events_url":"https://api.github.com/users/capuderg/received_events","type":"User","site_admin":false},"assignees":[{"login":"capuderg","id":9714134,"avatar_url":"https://avatars0.githubusercontent.com/u/9714134?v=4","gravatar_id":"","url":"https://api.github.com/users/capuderg","html_url":"https://github.com/capuderg","followers_url":"https://api.github.com/users/capuderg/followers","following_url":"https://api.github.com/users/capuderg/following{/other_user}","gists_url":"https://api.github.com/users/capuderg/gists{/gist_id}","starred_url":"https://api.github.com/users/capuderg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capuderg/subscriptions","organizations_url":"https://api.github.com/users/capuderg/orgs","repos_url":"https://api.github.com/users/capuderg/repos","events_url":"https://api.github.com/users/capuderg/events{/privacy}","received_events_url":"https://api.github.com/users/capuderg/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-03-19T15:15:55Z","updated_at":"2018-03-20T12:57:05Z","closed_at":null,"author_association":"OWNER","body":"Hey @capuderg, licensing looks great. \r\n\r\nThere's just one bit I'm running into while trying to implement a filter for the license activation. Essentially, I have my theme license options setup a bit different, under one option, as such:  \r\n<img width=\"806\" alt=\"screen shot 2018-03-19 at 11 11 23 am\" src=\"https://user-images.githubusercontent.com/1813435/37603971-4703b534-2b66-11e8-8acf-e0e8bee2a38d.png\">\r\n\r\n[Here's a gist](https://gist.github.com/richtabor/1ab3fecfc9241ba41f4949dc7067d75e#file-themebeans-license-php-L897-L1004) of what I'm trying to implement, though I'm running into a `TypeError: null is not an object (evaluating 'r.success')` JS error upon trying to activate a license.\r\n\r\nAm I approaching this wrong? I'd appreciate any insights!"},"comment":{"url":"https://api.github.com/repos/richtabor/MerlinWP/issues/comments/374587499","html_url":"https://github.com/richtabor/MerlinWP/issues/84#issuecomment-374587499","issue_url":"https://api.github.com/repos/richtabor/MerlinWP/issues/84","id":374587499,"user":{"login":"capuderg","id":9714134,"avatar_url":"https://avatars0.githubusercontent.com/u/9714134?v=4","gravatar_id":"","url":"https://api.github.com/users/capuderg","html_url":"https://github.com/capuderg","followers_url":"https://api.github.com/users/capuderg/followers","following_url":"https://api.github.com/users/capuderg/following{/other_user}","gists_url":"https://api.github.com/users/capuderg/gists{/gist_id}","starred_url":"https://api.github.com/users/capuderg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capuderg/subscriptions","organizations_url":"https://api.github.com/users/capuderg/orgs","repos_url":"https://api.github.com/users/capuderg/repos","events_url":"https://api.github.com/users/capuderg/events{/privacy}","received_events_url":"https://api.github.com/users/capuderg/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T12:57:05Z","updated_at":"2018-03-20T12:57:05Z","author_association":"COLLABORATOR","body":"We are doing pretty much the same thing: create request data, send POST request to our website and process the results (with some minor changes)...\r\n\r\nI think it's better, if we debug your code. Did you check what comes back to JS in the `r` variable?\r\n "}}
{"actor":{"display_login":"capuderg"}}