Git Product home page Git Product logo

Comments (6)

tyler-johnson avatar tyler-johnson commented on August 22, 2024

That is an odd one indeed. My recommendation is to use the native package system instead of meteorite by creating a packages directory in the root of the app and dumping this repo into it.

Otherwise, send me a stack trace and I'll do my best to find the problem.

from stripe-meteor.

merrillii avatar merrillii commented on August 22, 2024

Thanks for the reply - I'll give that a try!

Best,
Dennis

On Tue, Oct 1, 2013 at 1:46 AM, Tyler Johnson [email protected]:

That is an odd one indeed. My recommendation is to use the native package
system instead of meteorite by creating a packages directory in the root
of the app and dumping this repo into it.

Otherwise, send me a stack trace and I'll do my best to find the problem.


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-25426829
.

from stripe-meteor.

tyler-johnson avatar tyler-johnson commented on August 22, 2024

Oh I also forgot to mention. Name the folder stripe (or stripe-meteor, doesn't matter) and call meteor add stripe so Meteor knows to add the package.

from stripe-meteor.

merrillii avatar merrillii commented on August 22, 2024

Thanks Tyler, I just tried that but got the same issue. Would really love
to get this working. Here's what I did:

meteor create test
cd test
mkdir packages
git clone https://github.com/appleifreak/stripe-meteor.git stripe
meteor add stripe
added this code to test.js in server section:
var Stripe = StripeAPI('YOUR_SECRET_API_KEY');
meteor

Seems pretty straight forward but I still get an error. Here's what
the stack trace spits out:

=> Meteor server restarted
W202301-01:59:28.664(-4)? (STDERR)
/home/merrillii/test/test2/.meteor/local/build/programs/server/boot.js:184
W202301-01:59:28.664(-4)? (STDERR) }).run();
W202301-01:59:28.665(-4)? (STDERR) ^
W202301-01:59:28.666(-4)? (STDERR) ReferenceError: StripeAPI is not defined
W202301-01:59:28.667(-4)? (STDERR) at app/test2.js:18:14
W202301-01:59:28.667(-4)? (STDERR) at mains
(/home/merrillii/test/test2/.meteor/local/build/programs/server/boot.js:157:61)
W202301-01:59:28.667(-4)? (STDERR) at Array.forEach (native)
W202301-01:59:28.667(-4)? (STDERR) at Function..each..forEach
(/home/merrillii/.meteor/tools/3cba50c44a/lib/node_modules/underscore/underscore.js:79:11)
W202301-01:59:28.671(-4)? (STDERR) at
/home/merrillii/test/test2/.meteor/local/build/programs/server/boot.js:157:5
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.

Any ideas would be greatly appreciated!

Best,
Dennis

On Tue, Oct 1, 2013 at 1:53 AM, Tyler Johnson [email protected]:

Oh I also forgot to mention. Name the folder stripe (or stripe-meteor,
doesn't matter) and call meteor add stripe so Meteor knows to add the
package.


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-25426983
.

from stripe-meteor.

tyler-johnson avatar tyler-johnson commented on August 22, 2024

So turns out that it was a bug! I think Meteor changed a bunch of stuff in the new package system and variables defined in the global context no longer apply to application global context. Anyway, my latest push adds a this in front of StripeAPI so it should be working. Thanks for the heads up!

from stripe-meteor.

merrillii avatar merrillii commented on August 22, 2024

Oh yeah - I remember reading about that in the changelist. Great catch and
THANK YOU for the awesome package.

Best,
Dennis

On Tue, Oct 1, 2013 at 2:13 AM, Tyler Johnson [email protected]:

So turns out that it was a bug! I think Meteor changed a bunch of stuff in
the new package system and variables defined in the global context no
longer apply to application global context. Anyway, my latest push adds a
this in front of StripeAPI so it should be working. Thanks for the heads
up!


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-25427579
.

from stripe-meteor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.