如何在连接用户的帐户中创建 'available' 资金用于测试目的?

How to create 'available' funds in connected user's account for testing purposes?

当为 Stripe Connect 的支付 API 手动测试和编写单元测试时,事实证明很难测试,因为只有在连接用户的帐户中有足够的 'available' 资金时支付才会成功。将资金转入关联账户似乎是个好主意,但这些资金在可用之前会等待一段时间,而且 AFAIK,没有办法加快测试速度。

目前,我能想到的最好的解决办法是:

有没有更好的方法 - 无需等待几天的即时方法?

Stripe 提供了几个 test cards 允许您跳过未结余额并立即获得可用资金。

4000000000000077 Charge succeeds and funds will be added directly to your available balance (bypassing your pending balance).

4000003720000278 Charge succeeds and funds will be added directly to your available balance (bypassing your pending balance).