简体   繁体   English

如何支付给已连接用户(将资金从已连接用户的条带账户转移到他们的个人银行账户)?

[英]How to payout to a connected user (move funds from connected user's stripe account to their personal bank account)?

When using Stripe Connect's 'Express' variant, with Destination Charges, a user pays, the payment is split between the platform and the connected user, and the balance will accrue in the connected user's account.当使用 Stripe Connect 的“Express”变体和目的地费用时,用户付款,付款在平台和连接用户之间分摊,余额将在连接用户的帐户中累积。 The funds will first show as 'pending', and shortly after, the funds will show as 'available' in the connected user's account.资金将首先显示为“待处理”,不久之后,资金将在连接用户的帐户中显示为“可用”。

Supposing the payout schedule interval is set to manual , then the platform is responsible for the movement of the funds from the connected user's stripe account to their actual bank account, so the connected user can finally use the funds like normal money.假设支付计划间隔设置为manual ,则平台负责将资金从连接用户的条带账户转移到他们的实际银行账户,因此连接用户最终可以像普通钱一样使用资金。

Question问题

How can the platform move payout 'available' funds from the connected user's stripe account, to the connected user's actual bank account?平台如何将支付“可用”资金从连接用户的条带账户转移到连接用户的实际银行账户?

What I found so far到目前为止我发现了什么

According to Stripe docs , the correct code should be:根据Stripe docs ,正确的代码应该是:

transfer = Stripe::Transfer.create({
  amount: 1000,
  currency: "usd",
  destination: "{{CONNECTED_STRIPE_ACCOUNT_ID}}",
})

Is this correct?这个对吗?

The reasons I suspect it may not be are:我怀疑它可能不是的原因是:

  1. because AFAIK a 'transfer' in Stripe nomenclature means the movement of funds between the platform and the connected account , not between the connected account and the connected user's personal bank account.因为 AFAIK 在 Stripe 命名法中的“转移”是指平台关联账户之间的资金流动,而不是关联账户和关联用户的个人银行账户之间的流动。

  2. Because the destination could only mean the account number of the stripe account from which funds are being moved, so why would it be called 'destination' if it's in fact the opposite of destination因为destination只能表示资金从中转移的条带帐户的帐号,所以如果它实际上与目的地相反,为什么要称为“目的地”

Both of these concerns prompt this question.这两种担忧都引发了这个问题。

Thanks for such a well formulated and clear question!感谢您提出如此明确而清晰的问题!

Payouts支出

To answer the core question directly, when a connected account is configured to receive manual payouts, the platform can make calls to /v1/payouts [1] in order to move funds from a connected account's available balance to their external account.为了直接回答核心问题,当关联账户配置为接收手动支付时,平台可以调用/v1/payouts [1] 以便将资金从关联账户的可用余额转移到其外部账户。 In Ruby that would look something like:在 Ruby 中,它看起来像:

payout = Stripe::Payout.create({
  amount: 1000,
  currency: 'usd',
}, {
  stripe_account: '{{CONNECTED_STRIPE_ACCOUNT_ID}}',
})

The code that is provided using Transfers is indeed the way to move funds from the platform account to the connected account as part of the "Separate charges and transfers" integration [2].作为“单独收费和转账”集成 [2] 的一部分,使用转账提供的代码确实是将资金从平台账户转移到连接账户的方式。

Since your system is using using Express accounts and destination charges (where a portion of the charge is transferred to the connected account using transfer_data[amount] ), that is the mechanism that is being used to move funds form the platform to the connected account.由于您的系统使用的是 Express 账户和目的地费用(其中一部分费用使用transfer_data[amount]转移到关联账户),这就是用于将资金从平台转移到关联账户的机制。

  1. https://stripe.com/docs/connect/manual-payouts#regular-payouts https://stripe.com/docs/connect/manual-payouts#regular-payouts
  2. https://stripe.com/docs/connect/charges-transfers https://stripe.com/docs/connect/charges-transfers

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM