How to access braintree functionality from Meteor server

后端 未结 1 1809
误落风尘
误落风尘 2021-01-25 05:14

I\'m trying to use Braintree in my Meteor application, and I\'ve made a local package of this Braintree packaging, following the instructions of this blog post on the subject, a

相关标签:
1条回答
  • 2021-01-25 05:45

    Server packages require that symbols used outside of the package be exported with api.export. It looks like the package you referenced was built prior to meteor v0.6.5. As I recall, this video on EventedMind explains how all of this works. I suspect the solution to your problem is just to make your package.js look something like:

    Package.on_use(function (api) {
      api.export('Braintree');
      api.use(...);
      api.add_files(...);
    });
    
    0 讨论(0)
提交回复
热议问题