{"action":"created","issue":{"url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/issues/4146","repository_url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads","labels_url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/issues/4146/labels{/name}","comments_url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/issues/4146/comments","events_url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/issues/4146/events","html_url":"https://github.com/easydigitaldownloads/easy-digital-downloads/issues/4146","id":125693352,"number":4146,"title":"Add JS trigger to `edd_load_gateway()` for third-party hooks","user":{"login":"jplhomer","id":848147,"avatar_url":"https://avatars.githubusercontent.com/u/848147?v=3","gravatar_id":"","url":"https://api.github.com/users/jplhomer","html_url":"https://github.com/jplhomer","followers_url":"https://api.github.com/users/jplhomer/followers","following_url":"https://api.github.com/users/jplhomer/following{/other_user}","gists_url":"https://api.github.com/users/jplhomer/gists{/gist_id}","starred_url":"https://api.github.com/users/jplhomer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jplhomer/subscriptions","organizations_url":"https://api.github.com/users/jplhomer/orgs","repos_url":"https://api.github.com/users/jplhomer/repos","events_url":"https://api.github.com/users/jplhomer/events{/privacy}","received_events_url":"https://api.github.com/users/jplhomer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/labels/Checkout","name":"Checkout","color":"F1C40F"},{"url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/labels/Enhancement","name":"Enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/labels/Frontend","name":"Frontend","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/milestones/102","html_url":"https://github.com/easydigitaldownloads/easy-digital-downloads/milestones/2.6","labels_url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/milestones/102/labels","id":1095888,"number":102,"title":"2.6","description":null,"creator":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"open_issues":115,"closed_issues":15,"state":"open","created_at":"2015-05-04T21:37:54Z","updated_at":"2016-05-06T02:01:33Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-01-08T21:05:47Z","updated_at":"2016-05-06T02:01:37Z","closed_at":"2016-05-06T02:01:33Z","body":"It would be nice to have a hook to use for third-party plugins/themes when loading in a gateway over AJAX. This would enable input validation for a given payment gateway form.\r\n\r\nE.g.:\r\n\r\n```js\r\n// Format CC input using Stripe's jquery.payment library\r\n$('body').on('edd_gateway_loaded', function( event, payment_mode ) {\r\n    if ( 'stripe' === payment_mode) {\r\n        $('input#card_number').payment('formatCardNumber');\r\n    }\r\n});\r\n```\r\n\r\nI'll work up a pull request for this now!"},"comment":{"url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/issues/comments/217330172","html_url":"https://github.com/easydigitaldownloads/easy-digital-downloads/issues/4146#issuecomment-217330172","issue_url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/issues/4146","id":217330172,"user":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T02:01:37Z","updated_at":"2016-05-06T02:01:37Z","body":"Merged into release/2.6"}}