Transfer money from stripe account to other account

被刻印的时光 ゝ 提交于 2019-12-21 21:30:38

问题


I'm using this to charge a connected account the send the money to another account but I keep getting this error message.

I keep getting this error message:

You cannot supply a destination when charging a connected account.

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

How can I do it? Thanks


回答1:


Looking at the error message it seems the api believes you're using account debits where the destination parameter does not make sense:

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

So it's likely that your customer_id variable contains an account id instead of a customer id here.



来源:https://stackoverflow.com/questions/48979948/transfer-money-from-stripe-account-to-other-account

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!