Comments (6)
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.
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.
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.
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.
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.
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)
- mrt:stripe-server HOT 1
- Can't fetch from host HOT 5
- Slow load times HOT 3
- Support for Managed Accounts HOT 8
- Stripe not an object HOT 1
- WrapAsync exported functions HOT 3
- Bump version to 3.3.4? HOT 6
- resource: net::ERR_BLOCKED_BY_CLIENT on payment clicked HOT 4
- cordova problem with external stripe js HOT 1
- createRefund with meteor.wrapAsync issue?
- Stripe Running on All Pages HOT 6
- Uncaught ReferenceError: Stripe is not defined HOT 3
- StripeCheckout is not defined on v.2.2.0 HOT 1
- Stripe is not defined HOT 1
- Accidentally opened
- undefined charge result on client
- ReferenceError: Stripe is not defined HOT 9
- stripe.subscriptions undefined? HOT 4
- Is this package still being maintained? HOT 2
- not compatible with react-stripe-elements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe-meteor.