Lor*_*der 1 payment-gateway stripe-payments
我是 Stripe,用于使用 Stripe Connect 存储资金并将资金转移给卖家
我的问题是,当我尝试将资金从我的 Stripe 帐户转移到连接的帐户(资金处于测试模式)时,出现以下错误
curl https://api.stripe.com/v1/transfers -u sk_test_gjcwEVcKNBSBPQZxk9GdgwkX: -d amount=100 -d currency=gbp -d destination=acct_1EMBnXEZ0uftLeW4 -d transfer_group=ORDER_95
{
"error": {
"code": "balance_insufficient",
"doc_url": "https://stripe.com/docs/error-codes/balance-insufficient",
"message": "You have insufficient funds in your Stripe account. One likely reason you have insufficient funds is that your funds are automatically being paid out; try enabling manual payouts by going to https://dashboard.stripe.com/account/payouts.",
"type": "invalid_request_error"
}
}
Run Code Online (Sandbox Code Playgroud)
我的作品 ::
所以尝试了我在 stackoverflow 中找到的解决方案。我在测试模式下添加了英镑 a 和美元的金额
添加 TEST 数量后,我仍然遇到相同的错误。我也试过美元
请帮我解决这个问题。
当您对 Stripe 帐户收费时,这些资金会转入您的帐户pending余额。然后available根据您帐户的付款时间表,它们会在一段时间后变为。如果您使用每日自动付款的默认设置,当它们可用时,它们会立即包含在您银行帐户的付款中。如果你想,而不是积累了available一段时间的平衡,你需要将帐户设置为手动支出。
您可以通过 API检查您的余额。
这是相关的原因是,/v1/transfers只有当您有足够available的转账金额余额时,转账才能成功。有几种方法可以管理这个:
available足够的余额后才能进行转账。source_transaction领域。这样,转账 API 请求立即成功,资金在可用时自动转移。这将是首选。我在使用一些 Stripe 连接帐户进行测试时也遇到了这个问题。在您有可用余额之前,您可以通过source_transaction在创建转账的呼叫中提供 来将资金转账到关联账户。请参阅这些文档:https ://stripe.com/docs/connect/charges-transfers#transfer-availability