【发布时间】:2014-10-01 11:57:36
【问题描述】:
我需要帮助使用 Parse 的云代码在 Stripe 的更新客户函数中设置第一个字符串参数。我试图简单地调用我发送的带有客户 ID 的参数,但是当我尝试尝试它时,它似乎甚至无法被解析识别。这是我目前拥有的:
Parse.Cloud.define("updatecustomer", function(request, response) {
var Stripe = require('stripe'); Stripe.initialize('sk_test_#######');
Stripe.Customers.update(
request.params.customeruser //it does not seem to be picking up this line
,{
card: request.params.card,
email: request.params.email,
description: request.params.descriptionuser
},{
success: function(httpResponse) {
response.success(httpResponse);
},
error: function(httpResponse) {
response.error("Uh oh, something went wrong");
}
});
});
【问题讨论】:
标签: javascript parse-platform stripe-payments