简体   繁体   English

平台 Stripe 自动支付给连接的条带账户不起作用 - 没有这样的外部账户

[英]Platform Stripe automatic payout to connected stripe accounts not working - No such external account

I am having some weird issue when I try to payout to my platforms connected accounts, below is sample code of how I payout to connected account where "source" is a test connected account "acct_1IE4WnG9fsPmbonD" used as destination to my payout parameter当我尝试向我的平台连接账户付款时遇到一些奇怪的问题,下面是我如何向连接账户付款的示例代码,其中“源”是一个测试连接账户“acct_1IE4WnG9fsPmbonD”用作我的支付参数的目的地

PayoutCreateParams payoutCreateParams = PayoutCreateParams.builder()
            .setAmount(amount).setDestination(source)
            .setCurrency(currency).build();
    RequestOptions options = RequestOptions
            .builder()
            .setIdempotencyKey(uuid)
            .setApiKey(stripeKey)
            .build();
    Payout payout = Payout.create(payoutCreateParams, options);

When I try to execute this I get an error saying当我尝试执行此操作时,我收到一条错误消息

com.stripe.exception.InvalidRequestException:
No such external account: 'acct_1IE4WnG9fsPmbonD'; code: resource_missing; request-id: req_vnLHhOn3WaG9IT

My use case is basically to payout to may platforms connected account maybe twice a month.我的用例基本上是每月支付两次可能连接到平台的帐户。

So Now I wonder if I am doing payout to my platform connected account wrong..所以现在我想知道我是否对我的平台连接帐户进行了错误的支付..

Thanks.谢谢。

A Payout is meant to go to a bank account or debit card, not a Stripe Account.付款意味着 go 到银行账户或借记卡,而不是 Stripe 账户。 You probably want Transfers, not Payouts: https://stripe.com/docs/api/transfers您可能想要转账,而不是付款: https://stripe.com/docs/api/transfers

Alternatively, you would want to use a bank account ID in setDestination if required, and then include the Stripe-Account header to make an actual payout: https://stripe.com/docs/connect/manual-payouts#regular-payouts或者,如果需要,您可能希望在setDestination中使用银行帐户 ID,然后包含 Stripe-Account header 以进行实际支付: https://stripe.com/docs/connect/manual-payouts#regular-payouts

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

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