{"action":"created","issue":{"url":"https://api.github.com/repos/stripe/stripe-java/issues/73","labels_url":"https://api.github.com/repos/stripe/stripe-java/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/stripe/stripe-java/issues/73/comments","events_url":"https://api.github.com/repos/stripe/stripe-java/issues/73/events","html_url":"https://github.com/stripe/stripe-java/issues/73","id":32009541,"number":73,"title":"Add ability to get raw request / response for audit log","user":{"login":"jxtps","id":90846,"avatar_url":"https://avatars.githubusercontent.com/u/90846?v=3","gravatar_id":"","url":"https://api.github.com/users/jxtps","html_url":"https://github.com/jxtps","followers_url":"https://api.github.com/users/jxtps/followers","following_url":"https://api.github.com/users/jxtps/following{/other_user}","gists_url":"https://api.github.com/users/jxtps/gists{/gist_id}","starred_url":"https://api.github.com/users/jxtps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jxtps/subscriptions","organizations_url":"https://api.github.com/users/jxtps/orgs","repos_url":"https://api.github.com/users/jxtps/repos","events_url":"https://api.github.com/users/jxtps/events{/privacy}","received_events_url":"https://api.github.com/users/jxtps/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stripe/stripe-java/labels/version-two","name":"version-two","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-04-22T20:51:26Z","updated_at":"2015-09-17T19:41:15Z","closed_at":"2015-09-17T19:41:15Z","body":"For auditing purposes we need to log every single call made to Stripe, and precisely what was sent and what was received back (yes, I'm aware of your corresponding log, that is unfortunately not sufficient here). \r\n\r\nCurrently it is not possible to get that information - as soon as _request returns it is dropped on the floor: https://github.com/stripe/stripe-java/blob/master/src/main/java/com/stripe/net/APIResource.java#L418\r\n\r\nIt would be great if that capability could be added - would be unfortunate to have to roll our own SDK \"just\" to get that. \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/stripe/stripe-java/issues/comments/141204303","html_url":"https://github.com/stripe/stripe-java/issues/73#issuecomment-141204303","issue_url":"https://api.github.com/repos/stripe/stripe-java/issues/73","id":141204303,"user":{"login":"kyleconroy","id":34893,"avatar_url":"https://avatars.githubusercontent.com/u/34893?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleconroy","html_url":"https://github.com/kyleconroy","followers_url":"https://api.github.com/users/kyleconroy/followers","following_url":"https://api.github.com/users/kyleconroy/following{/other_user}","gists_url":"https://api.github.com/users/kyleconroy/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleconroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleconroy/subscriptions","organizations_url":"https://api.github.com/users/kyleconroy/orgs","repos_url":"https://api.github.com/users/kyleconroy/repos","events_url":"https://api.github.com/users/kyleconroy/events{/privacy}","received_events_url":"https://api.github.com/users/kyleconroy/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T19:41:15Z","updated_at":"2015-09-17T19:41:15Z","body":"I'm going to close this issue for now, but tag it with `version-two`. We'll probably go with the backends approach, which means you'll be able to create a custom backend that would log all requests / responses.\r\n"}}