{"action":"opened","issue":{"url":"https://api.github.com/repos/braintree/braintree_ruby/issues/91","labels_url":"https://api.github.com/repos/braintree/braintree_ruby/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/braintree/braintree_ruby/issues/91/comments","events_url":"https://api.github.com/repos/braintree/braintree_ruby/issues/91/events","html_url":"https://github.com/braintree/braintree_ruby/issues/91","id":95154445,"number":91,"title":"Allow specifying braintree account per request/Sale","user":{"login":"PragTob","id":606517,"avatar_url":"https://avatars.githubusercontent.com/u/606517?v=3","gravatar_id":"","url":"https://api.github.com/users/PragTob","html_url":"https://github.com/PragTob","followers_url":"https://api.github.com/users/PragTob/followers","following_url":"https://api.github.com/users/PragTob/following{/other_user}","gists_url":"https://api.github.com/users/PragTob/gists{/gist_id}","starred_url":"https://api.github.com/users/PragTob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PragTob/subscriptions","organizations_url":"https://api.github.com/users/PragTob/orgs","repos_url":"https://api.github.com/users/PragTob/repos","events_url":"https://api.github.com/users/PragTob/events{/privacy}","received_events_url":"https://api.github.com/users/PragTob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-15T10:02:22Z","updated_at":"2015-07-15T10:02:22Z","closed_at":null,"body":"Right now merchant_id, public_key, private_key are set as Singletons/globals. For a platform supporting multiple merchants with different accounts (that can't share an account and then specify different merchant_account_ids).\r\n\r\nSo it'd be great if these values could be configured on a per request basis instead of their singleton nature. E.g. like another hash option passed (merachent: id:, public_key, private_key) or an optional configuration object.\r\n\r\nIf that option exists somewhere and I didn't find it, please let me know.\r\n\r\nAs a workaround I guess one could use the Singletons and put a Mutex around it... but that's less than ideal.\r\n\r\nThanks,\r\nTobi"}}