{"action":"created","issue":{"url":"https://api.github.com/repos/angelleye/paypal-php-library/issues/57","labels_url":"https://api.github.com/repos/angelleye/paypal-php-library/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/angelleye/paypal-php-library/issues/57/comments","events_url":"https://api.github.com/repos/angelleye/paypal-php-library/issues/57/events","html_url":"https://github.com/angelleye/paypal-php-library/issues/57","id":93782743,"number":57,"title":"Add a filter in Angelleye_PayPal constructor's constructor","user":{"login":"lordspace","id":137558,"avatar_url":"https://avatars.githubusercontent.com/u/137558?v=3","gravatar_id":"","url":"https://api.github.com/users/lordspace","html_url":"https://github.com/lordspace","followers_url":"https://api.github.com/users/lordspace/followers","following_url":"https://api.github.com/users/lordspace/following{/other_user}","gists_url":"https://api.github.com/users/lordspace/gists{/gist_id}","starred_url":"https://api.github.com/users/lordspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordspace/subscriptions","organizations_url":"https://api.github.com/users/lordspace/orgs","repos_url":"https://api.github.com/users/lordspace/repos","events_url":"https://api.github.com/users/lordspace/events{/privacy}","received_events_url":"https://api.github.com/users/lordspace/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angelleye/paypal-php-library/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-08T12:54:54Z","updated_at":"2015-07-08T16:19:06Z","closed_at":"2015-07-08T16:19:05Z","body":"Hi,\r\n\r\nWill it be possible to add a filter in the first line of the Angelleye_PayPal constructor that's in /plugins/paypal-for-woocommerce/classes/lib/angelleye/paypal-php-library/includes/paypal.class.php ?\r\nYou can make it all lowercase if you want.\r\n\r\n```\r\n$DataArray = apply_filters( 'Angelleye_PayPal_Construct_Params', $DataArray );\r\n```\r\n\r\nI am working on a client project and I need to switch between different paypal accounts based on certain conditions.\r\n\r\n\r\n```\r\nclass Angelleye_PayPal\r\n{\r\n\r\n\tvar $APIUsername = '';\r\n\tvar $APIPassword = '';\r\n\tvar $APISignature = '';\r\n\tvar $APISubject = '';\r\n\tvar $APIVersion = '';\r\n\tvar $APIButtonSource = '';\r\n\tvar $APIMode = '';\r\n\tvar $EndPointURL = '';\r\n\tvar $Sandbox = '';\r\n\tvar $PathToCertKeyPEM = '';\r\n\tvar $SSL = '';\r\n\t\r\n\t/**\r\n\t * Constructor\r\n\t *\r\n\t * @access\tpublic\r\n\t * @param\tarray\tconfig preferences\r\n\t * @return\tvoid\r\n\t */\r\n\tfunction __construct($DataArray)\r\n\t{\r\n        $DataArray = apply_filters( 'Angelleye_PayPal_Construct_Params', $DataArray );\r\n\t\t\r\n\t\t\t................................\r\n```"},"comment":{"url":"https://api.github.com/repos/angelleye/paypal-php-library/issues/comments/119646100","html_url":"https://github.com/angelleye/paypal-php-library/issues/57#issuecomment-119646100","issue_url":"https://api.github.com/repos/angelleye/paypal-php-library/issues/57","id":119646100,"user":{"login":"angelleye","id":629241,"avatar_url":"https://avatars.githubusercontent.com/u/629241?v=3","gravatar_id":"","url":"https://api.github.com/users/angelleye","html_url":"https://github.com/angelleye","followers_url":"https://api.github.com/users/angelleye/followers","following_url":"https://api.github.com/users/angelleye/following{/other_user}","gists_url":"https://api.github.com/users/angelleye/gists{/gist_id}","starred_url":"https://api.github.com/users/angelleye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelleye/subscriptions","organizations_url":"https://api.github.com/users/angelleye/orgs","repos_url":"https://api.github.com/users/angelleye/repos","events_url":"https://api.github.com/users/angelleye/events{/privacy}","received_events_url":"https://api.github.com/users/angelleye/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T16:19:05Z","updated_at":"2015-07-08T16:19:05Z","body":"Moving this to the PayPal for WooCommerce repo."}}