{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/cashier/issues/192","labels_url":"https://api.github.com/repos/laravel/cashier/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/laravel/cashier/issues/192/comments","events_url":"https://api.github.com/repos/laravel/cashier/issues/192/events","html_url":"https://github.com/laravel/cashier/pull/192","id":100336354,"number":192,"title":"Allow testing of Webhooks using ENV","user":{"login":"phleobon","id":10886724,"avatar_url":"https://avatars.githubusercontent.com/u/10886724?v=3","gravatar_id":"","url":"https://api.github.com/users/phleobon","html_url":"https://github.com/phleobon","followers_url":"https://api.github.com/users/phleobon/followers","following_url":"https://api.github.com/users/phleobon/following{/other_user}","gists_url":"https://api.github.com/users/phleobon/gists{/gist_id}","starred_url":"https://api.github.com/users/phleobon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phleobon/subscriptions","organizations_url":"https://api.github.com/users/phleobon/orgs","repos_url":"https://api.github.com/users/phleobon/repos","events_url":"https://api.github.com/users/phleobon/events{/privacy}","received_events_url":"https://api.github.com/users/phleobon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-11T15:17:06Z","updated_at":"2015-08-11T15:55:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/cashier/pulls/192","html_url":"https://github.com/laravel/cashier/pull/192","diff_url":"https://github.com/laravel/cashier/pull/192.diff","patch_url":"https://github.com/laravel/cashier/pull/192.patch"},"body":"After seeing the pull request #190 I wanted to contribute with what looks to me a better solution.\r\n\r\nAs @taylorotwell said using environment variables looked like a better choice.\r\n\r\nTo keep it simple I added a isInTestingMode method that return a boolean according to the CASHIER_TESTING env variable.\r\n\r\nThen in the handleWebhook method we can verify that we are not in testing mode."},"comment":{"url":"https://api.github.com/repos/laravel/cashier/issues/comments/129943641","html_url":"https://github.com/laravel/cashier/pull/192#issuecomment-129943641","issue_url":"https://api.github.com/repos/laravel/cashier/issues/192","id":129943641,"user":{"login":"phleobon","id":10886724,"avatar_url":"https://avatars.githubusercontent.com/u/10886724?v=3","gravatar_id":"","url":"https://api.github.com/users/phleobon","html_url":"https://github.com/phleobon","followers_url":"https://api.github.com/users/phleobon/followers","following_url":"https://api.github.com/users/phleobon/following{/other_user}","gists_url":"https://api.github.com/users/phleobon/gists{/gist_id}","starred_url":"https://api.github.com/users/phleobon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phleobon/subscriptions","organizations_url":"https://api.github.com/users/phleobon/orgs","repos_url":"https://api.github.com/users/phleobon/repos","events_url":"https://api.github.com/users/phleobon/events{/privacy}","received_events_url":"https://api.github.com/users/phleobon/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T15:55:45Z","updated_at":"2015-08-11T15:55:45Z","body":"I might have done something wrong..\r\n\r\nSorry for my poor git knowledge"}}