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

WrapAsync exported functions #35

Closed adamvr closed 4 years ago

adamvr commented 9 years ago

It would be nice if we could directly use the functions from this lib in a meteoric way, i.e. var charge = Stripe.charges.create()

dkmooers commented 9 years ago

You can do this with Meteor.wrapAsync():

http://stackoverflow.com/questions/26226583/meteor-proper-use-of-meteor-wrapasync-on-server http://stackoverflow.com/questions/26322617/meteor-wrapasync-dont-return-value

adamvr commented 9 years ago

Yes, but it would be nice not to.

dkmooers commented 9 years ago

@adamvr Did you see this package? (stripe-sync) https://atmospherejs.com/copleykj/stripe-sync