Parse platform 条带云代码模块内部问题?

Parse platform 条带云代码模块内部问题?,parse-platform,parse-cloud-code,Parse Platform,Parse Cloud Code,我正在尝试使用Stripe云代码模块对Stripe上的卡进行收费 我的代码以前是可以工作的,但突然间我从stripe.js中发现了这个错误 TypeError: Object [object Object] has no method 'isString' at request (stripe.js:49:25) at post (stripe.js:117:12) at Object.module.exports.Charges.create (stripe.js:157:16) at mai

我正在尝试使用Stripe云代码模块对Stripe上的卡进行收费

我的代码以前是可以工作的,但突然间我从stripe.js中发现了这个错误

TypeError: Object [object Object] has no method 'isString'
at request (stripe.js:49:25)
at post (stripe.js:117:12)
at Object.module.exports.Charges.create (stripe.js:157:16)
at main.js:6:20
这是我的代码(当然不包括我的钥匙):


这是Parse提供的当前条带模块中的一个错误。我最终将我的条带支付处理转移到Heroku以避免这个问题。

这是Parse提供的当前条带模块中的一个错误。为了避免这个问题,我最终将我的条带支付处理转移到了Heroku。

您尝试了多少?这篇文章建议将云代码恢复到1.5版本,这篇文章也一样,你尝试了多少?这篇文章建议将云代码恢复到1.5,这篇文章也是如此
    var Stripe = require('stripe');
    Stripe.initialize('#################');
    Parse.Cloud.define("preOrder", function(request, response) {
        var tok = String(request.params.token)
        Stripe.Charges.create({
            amount: 100 * 40,
            currency: "usd",
            card: tok // the token id should be sent from the client
        },{
            success: function(httpResponse) {
                response.success("Purchase made!");
            },
            error: function(httpResponse) {
                response.error("Uh oh, something went wrong");
        }
      });
   });