tyler-johnson / stripe-meteor

A Meteor package containing Stripe.js, Node-Stripe, and Stripe Checkout.
https://atmospherejs.com/mrgalaxy/stripe
150 stars 44 forks source link

stripe.subscriptions undefined? #53

Closed quape closed 7 years ago

quape commented 7 years ago

Hi there,

I'm trying to create a new subscription, but stripe.subscriptions.create() results in this error:

TypeError: Cannot read property 'create' of undefined

What's that? Everything else what I did with stripe worked so far.

Greetings Mat

wonderfulazzahra commented 7 years ago

i got this error too :(

thanks azzahra

AnujSharma1459 commented 7 years ago

I got this error too. What to do now??

quape commented 7 years ago

I think this package doesn't support the new methods. Use stripe.customers.createSubscription instead. This is what I did at this point. Or, even better, don't use this package anymore but use the stripe npm package instead. meteor npm install stripe --save and then use stripe with var stripe = require('stripe')(PRIVATE_KEY)

AnujSharma1459 commented 7 years ago

Thanks quape. You save my day.