-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: stripePackage is not a function / TypeError: Stripe is not a constructor #495
Comments
@ScottAgirs You can see in the source that function Stripe(key, version) {
...
} Here's a simple test script that I ran locally that I think accomplish what you're trying to do (and works for me): var stripeFunc = require("./lib/stripe");
const stripe = stripeFunc("sk_test_...");
stripe.charges.retrieve(
"ch_1D6nxm2eZvKYlo2CmXVNxYDj",
function(err, charge) {
console.log("hello");
}
); I suspect something in your stack is causing this to fail, and I'd suggest seeing if you can find out what exactly the I'm going to close this for now. Feel free to reopen if it looks like you've tripped across a real bug, but please provide more supporting material to back that up. If you're still having trouble, feel free to open a case with [email protected] and they'll see what they can do to help you out! |
Trying to implement back-end and can't figure out if this is a bug or I'm missing something
Stack:
Meteor w/ React
Scenario #1:
Result:
Scenario #2:
Result:
The text was updated successfully, but these errors were encountered: