ripplehq / meteor-braintree

Braintree.js server and client code wrapped for Meteor
0 stars 2 forks source link

References to Braintree are undefined. #3

Closed blainehansen closed 10 years ago

blainehansen commented 10 years ago

I can't access any of the braintree objects, and I've documented the matter in this stack overflow post.

http://stackoverflow.com/questions/22154305/how-to-access-braintree-functionality-from-meteor-server

blainehansen commented 10 years ago

This issue has been solved. Change Package.on_use to this:

Package.on_use(function(api) {
  api.export('Braintree');
  api.add_files('server.js', 'server');
  api.add_files('braintree-client.js', 'client');
});

and the Braintree will be global to the application.

datacarl commented 10 years ago

Thx for noticing. Updated and also bumped to latest version of the Braintree package.