0
我刚刚迁移到了heroku,当我尝试向客户收费时,出现此错误。迁移到heroku后,Stripe停止工作
Unhandled rejection Error: Stripe: Unknown arguments ([object Object]). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options.
下面是我的云代码
Parse.Cloud.define("charge", function(request, response){
Stripe.charges.create({
amount: 100*100,
currency: "usd",
customer: request.params.customerId,
card: request.params.cardId
},{
success: function(httpResponse) {
response.success("success");
},
error: function(httpResponse) {
response.error(httpResponse)
}
});
});
你已经安装了所有的库。 –
是的,我可以执行其他条纹功能,它只是充电给我这个错误。 – anonymous
奇数。你确定你的堆栈跟踪表明这个代码是问题吗?另外,这是你的确切代码,还是你在粘贴到SO之前修改了任何东西? –