【问题标题】:Meteor._wrapAsync doesn't seem to work with stripe api libraryMeteor._wrapAsync 似乎不适用于条带 api 库
【发布时间】:2014-07-18 15:46:32
【问题描述】:

当我像这样使用_wrapAsync 时:

var stripeChargeCreate = Meteor._wrapAsync(_.bind(Stripe.charges.create,Stripe));
var charge = stripeChargeCreate({
    amount: amount,
    currency: "usd",
    card: token,
    description: description
});

我收到以下错误:Object # has no method 'createUrlData'

我错过了什么?

【问题讨论】:

    标签: asynchronous meteor stripe-payments


    【解决方案1】:

    你确定你的绑定是正确的吗? _.bind(Stripe.charges.create,Stripe.charges) 可能会更好。

    【讨论】:

    • 那行得通。谢谢!具有讽刺意味的是,我昨天真的试过了,它奏效了。但是我有另一个错误,我没有仔细阅读。感谢您为我指明正确的方向。
    • 我遇到了类似的问题,并创建了一个类似的问题,这在流星中工作 > 0.9 也许有人会发现这很有用stackoverflow.com/questions/26322617/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-07-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-16
    • 1970-01-01
    相关资源
    最近更新 更多