{"action":"created","issue":{"url":"https://api.github.com/repos/patrickml/braintree/issues/21","labels_url":"https://api.github.com/repos/patrickml/braintree/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/patrickml/braintree/issues/21/comments","events_url":"https://api.github.com/repos/patrickml/braintree/issues/21/events","html_url":"https://github.com/patrickml/braintree/issues/21","id":121107967,"number":21,"title":"Correct usage of Braintree drop-in ui with Meteor?","user":{"login":"afang","id":13699581,"avatar_url":"https://avatars.githubusercontent.com/u/13699581?v=3","gravatar_id":"","url":"https://api.github.com/users/afang","html_url":"https://github.com/afang","followers_url":"https://api.github.com/users/afang/followers","following_url":"https://api.github.com/users/afang/following{/other_user}","gists_url":"https://api.github.com/users/afang/gists{/gist_id}","starred_url":"https://api.github.com/users/afang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afang/subscriptions","organizations_url":"https://api.github.com/users/afang/orgs","repos_url":"https://api.github.com/users/afang/repos","events_url":"https://api.github.com/users/afang/events{/privacy}","received_events_url":"https://api.github.com/users/afang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-08T21:54:26Z","updated_at":"2015-12-09T21:13:50Z","closed_at":null,"body":"This is my first time using Braintree and I'm not sure how to make a transaction after the nonce is returned to the server. All I'm getting is a `Error invoking Method 'makePurchase': Internal server error [500]` on the client and `Exception while invoking method 'makePurchase' TypeError: Object [object Object] has no method 'sale'`.\r\n\r\n```\r\nMeteor.methods({\r\n\t'getBraintreeToken': function () {\r\n\t\tvar token = bt.clientToken.generate({}).clientToken;\r\n\t\tconsole.log(token);\r\n\t\treturn token;\r\n\r\n\t},\r\n\t'makePurchase': function(nonce) {\r\n\t\tbt.sale({\r\n\t\t\tamount: '350.00',\r\n\t\t\tpaymentMethodNonce: nonce\r\n\t\t});\r\n\t}\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/patrickml/braintree/issues/comments/163393450","html_url":"https://github.com/patrickml/braintree/issues/21#issuecomment-163393450","issue_url":"https://api.github.com/repos/patrickml/braintree/issues/21","id":163393450,"user":{"login":"afang","id":13699581,"avatar_url":"https://avatars.githubusercontent.com/u/13699581?v=3","gravatar_id":"","url":"https://api.github.com/users/afang","html_url":"https://github.com/afang","followers_url":"https://api.github.com/users/afang/followers","following_url":"https://api.github.com/users/afang/following{/other_user}","gists_url":"https://api.github.com/users/afang/gists{/gist_id}","starred_url":"https://api.github.com/users/afang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afang/subscriptions","organizations_url":"https://api.github.com/users/afang/orgs","repos_url":"https://api.github.com/users/afang/repos","events_url":"https://api.github.com/users/afang/events{/privacy}","received_events_url":"https://api.github.com/users/afang/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T21:13:50Z","updated_at":"2015-12-09T21:13:50Z","body":"`bt.transaction.sale` is still throwing a `Error invoking Method 'makePurchase': Error processing card [400]` with no other details.\r\n\r\n``\r\n\t'makePurchase': function(nonce) {\r\n\t\tvar charge = bt.transaction.sale({\r\n\t\t\tamount: '350.00',\r\n\t\t\tpaymentMethodNonce: nonce,\r\n\t\t\toptions: {\r\n\t\t\t\tsubmitForSettlement: true\r\n\t\t\t}\r\n\t\t});\r\n\t\tif (charge.success) {\r\n\t\t\tconsole.log(charge.success);\r\n\t\t} else {\r\n\t\t\tthrow new Meteor.Error(400, 'Error processing card');\r\n\t\t}\r\n\t}\r\n});\r\n```"}}