将资金从条带帐户转移到其他帐户

我用这个来收取连接帐户,将钱发送到另一个帐户,但我不断收到此错误消息。

我一直收到此错误消息:

在为连接的帐户收费时,您无法提供destination

  return stripe.charges.create({ amount: 1000, currency: "usd", source: customer_id, destination: { account: "acct_1BxnsfGGXo2wovzm" }, }); 

我该怎么做? 谢谢

查看错误消息,似乎api认为您正在使用目标参数没有意义的帐户借记:

https://stripe.com/docs/connect/account-debits

因此,您的customer_id变量可能包含帐户ID而不是客户ID。