{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/payments/issues/77","labels_url":"https://api.github.com/repos/mozilla/payments/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/payments/issues/77/comments","events_url":"https://api.github.com/repos/mozilla/payments/issues/77/events","html_url":"https://github.com/mozilla/payments/issues/77","id":89130244,"number":77,"title":"Cancelled subscription email","user":{"login":"andymckay-limited-access","id":11861185,"avatar_url":"https://avatars.githubusercontent.com/u/11861185?v=3","gravatar_id":"","url":"https://api.github.com/users/andymckay-limited-access","html_url":"https://github.com/andymckay-limited-access","followers_url":"https://api.github.com/users/andymckay-limited-access/followers","following_url":"https://api.github.com/users/andymckay-limited-access/following{/other_user}","gists_url":"https://api.github.com/users/andymckay-limited-access/gists{/gist_id}","starred_url":"https://api.github.com/users/andymckay-limited-access/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymckay-limited-access/subscriptions","organizations_url":"https://api.github.com/users/andymckay-limited-access/orgs","repos_url":"https://api.github.com/users/andymckay-limited-access/repos","events_url":"https://api.github.com/users/andymckay-limited-access/events{/privacy}","received_events_url":"https://api.github.com/users/andymckay-limited-access/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-17T21:27:52Z","updated_at":"2015-06-17T21:27:52Z","closed_at":null,"body":"In http://payments.readthedocs.org/en/latest/design/api/provider.html#subscription-cancelled, it says \"I think this is a job that can be accomplished using a really good subscription cancellation UI\".\n\nThe problem is that a cancellation can happen when the user isn't there and there is no UI.\n\nExamples:\n* after a certain number of unsuccessful credit card retries, Braintree will cancel their subscription\n* we can do it for users from the Braintree management interface for any sort of problem\n\nWe could theoretically say \"if it was done by a user, don't send email\" but I'm not sure yet if we can tell that. I think certainly there is enough cases where an email is warranted.\n\nThe one for charge failed is here:\n\nhttp://payments.readthedocs.org/en/latest/design/api/provider.html#subscription-charge-failed"}}