{"action":"created","issue":{"url":"https://api.github.com/repos/paypal/JavaScriptButtons/issues/52","labels_url":"https://api.github.com/repos/paypal/JavaScriptButtons/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/paypal/JavaScriptButtons/issues/52/comments","events_url":"https://api.github.com/repos/paypal/JavaScriptButtons/issues/52/events","html_url":"https://github.com/paypal/JavaScriptButtons/issues/52","id":15298767,"number":52,"title":"callback on initial click (not completion)?","user":{"login":"mattsly","id":966935,"avatar_url":"https://avatars.githubusercontent.com/u/966935?v=3","gravatar_id":"","url":"https://api.github.com/users/mattsly","html_url":"https://github.com/mattsly","followers_url":"https://api.github.com/users/mattsly/followers","following_url":"https://api.github.com/users/mattsly/following{/other_user}","gists_url":"https://api.github.com/users/mattsly/gists{/gist_id}","starred_url":"https://api.github.com/users/mattsly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattsly/subscriptions","organizations_url":"https://api.github.com/users/mattsly/orgs","repos_url":"https://api.github.com/users/mattsly/repos","events_url":"https://api.github.com/users/mattsly/events{/privacy}","received_events_url":"https://api.github.com/users/mattsly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paypal/JavaScriptButtons/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-06-08T02:08:42Z","updated_at":"2015-03-16T15:48:09Z","closed_at":null,"body":"Would you be open to a PR that adds a callback for the initial click event (in addition to the existing callback on transaction completion)?  That would help developers understand intent to buy, and perhaps do retargeting etc for those that don't complete the checkout process."},"comment":{"url":"https://api.github.com/repos/paypal/JavaScriptButtons/issues/comments/81752485","html_url":"https://github.com/paypal/JavaScriptButtons/issues/52#issuecomment-81752485","issue_url":"https://api.github.com/repos/paypal/JavaScriptButtons/issues/52","id":81752485,"user":{"login":"brugnara","id":2781191,"avatar_url":"https://avatars.githubusercontent.com/u/2781191?v=3","gravatar_id":"","url":"https://api.github.com/users/brugnara","html_url":"https://github.com/brugnara","followers_url":"https://api.github.com/users/brugnara/followers","following_url":"https://api.github.com/users/brugnara/following{/other_user}","gists_url":"https://api.github.com/users/brugnara/gists{/gist_id}","starred_url":"https://api.github.com/users/brugnara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brugnara/subscriptions","organizations_url":"https://api.github.com/users/brugnara/orgs","repos_url":"https://api.github.com/users/brugnara/repos","events_url":"https://api.github.com/users/brugnara/events{/privacy}","received_events_url":"https://api.github.com/users/brugnara/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T15:48:09Z","updated_at":"2015-03-16T15:48:09Z","body":"You can add an 'onsubmit' event to the form after it's created."}}