{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/solitude/issues/547","labels_url":"https://api.github.com/repos/mozilla/solitude/issues/547/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/solitude/issues/547/comments","events_url":"https://api.github.com/repos/mozilla/solitude/issues/547/events","html_url":"https://github.com/mozilla/solitude/issues/547","id":102874923,"number":547,"title":"Disallow Braintree subscription creation without a configured product","user":{"login":"kumar303","id":55398,"avatar_url":"https://avatars.githubusercontent.com/u/55398?v=3","gravatar_id":"","url":"https://api.github.com/users/kumar303","html_url":"https://github.com/kumar303","followers_url":"https://api.github.com/users/kumar303/followers","following_url":"https://api.github.com/users/kumar303/following{/other_user}","gists_url":"https://api.github.com/users/kumar303/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar303/subscriptions","organizations_url":"https://api.github.com/users/kumar303/orgs","repos_url":"https://api.github.com/users/kumar303/repos","events_url":"https://api.github.com/users/kumar303/events{/privacy}","received_events_url":"https://api.github.com/users/kumar303/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/solitude/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mozilla/solitude/labels/donations","name":"donations","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-24T19:41:19Z","updated_at":"2015-08-24T19:41:19Z","closed_at":null,"body":"Currently it's possible to create a braintree subscription with a plan ID that does *not* link to a [configured product](https://github.com/mozilla/payments-config) (see https://github.com/mozilla/solitude/blob/2eaf007ff56caaa1a357b439253c6e5d4f665d82/lib/brains/forms.py#L116). We should prevent this from happening with a form error. We rely on product configuration for too much now, such as whether the subscription accepts variable amounts or not."}}