在连接的独立帐户(条带)上收费时出错

时间:2016-01-15 06:02:53

标签: stripe-payments stripe-connect

我试图对连接的独立帐户收取费用。我正在使用解析云代码...它给了我以下错误:

错误域=解析代码= 141" ReferenceError:未定义条带

以下是我的代码..

var Stripe = require('stripe');
Stripe.initialize('**************************');

Parse.Cloud.define("hello", function(request, response) {

               var token = request.params.stripeToken;
               var userid = request.params.userId;
               stripe.charges.create(
                                     {
                                     amount: 1000,
                                     currency: "usd",
                                     source: token,
                                     description: "Example charge",
                                     application_fee: 123
                                     },
                                     {stripe_account: userid},{
                                     success: function(httpResponse) {
                                     response.success("Purchase made!");
                                     },
                                     error: function(httpResponse) {
                                     response.error(error);
                                     }

                                     });
});

0 个答案:

没有答案