{"action":"opened","issue":{"url":"https://api.github.com/repos/angelleye/paypal-php-library/issues/61","labels_url":"https://api.github.com/repos/angelleye/paypal-php-library/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/angelleye/paypal-php-library/issues/61/comments","events_url":"https://api.github.com/repos/angelleye/paypal-php-library/issues/61/events","html_url":"https://github.com/angelleye/paypal-php-library/issues/61","id":117098412,"number":61,"title":"ALLOWNOTE = 0 has no effect unless wrapped in quotes","user":{"login":"jimyaghi","id":15869425,"avatar_url":"https://avatars.githubusercontent.com/u/15869425?v=3","gravatar_id":"","url":"https://api.github.com/users/jimyaghi","html_url":"https://github.com/jimyaghi","followers_url":"https://api.github.com/users/jimyaghi/followers","following_url":"https://api.github.com/users/jimyaghi/following{/other_user}","gists_url":"https://api.github.com/users/jimyaghi/gists{/gist_id}","starred_url":"https://api.github.com/users/jimyaghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimyaghi/subscriptions","organizations_url":"https://api.github.com/users/jimyaghi/orgs","repos_url":"https://api.github.com/users/jimyaghi/repos","events_url":"https://api.github.com/users/jimyaghi/events{/privacy}","received_events_url":"https://api.github.com/users/jimyaghi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-16T10:56:05Z","updated_at":"2015-11-16T10:56:05Z","closed_at":null,"body":"Line 5103 in PayPal.php tests for empty with != This means that any values we want to intentionally set to 0 (integer) are not sent. I think for most cases it's fine, but with ALLOWNOTE the default appears to be 1 rather than 0. Perhaps there are other instances where the default is not an empty value but where empty is a valid value. It's not a real bug but it's a little counter intuitive. i fixed it by replacing with !== in that line to test for an empty string so booleans and integers that cast to empty are not skipped."}}