I keep getting "StripeInvalidRequestError: Insufficient funds in Stripe account." even though that I do have enough funds

I keep getting "StripeInvalidRequestError: Insufficient funds in Stripe account." even though that I do have enough funds

我正尝试在测试模式下将资金从我的 Stripe 帐户转移到已连接的 Stripe 帐户。我的测试模式账户中有足够的资金未待处理。但我仍然收到“StripeInvalidRequestError:Stripe 帐户中的资金不足。”错误。我不确定我做错了什么,这是我第一次使用 Stripe,所以我可能在这里遗漏了一些东西。

如果有人能帮我指出正确的方向,我将不胜感激,谢谢!

传输脚本

router.get('/transfer/:account', async (req, res)=> {

    const account = req.params.account

    const transfer = await stripe.transfers.create({
        amount: 500,
        currency: 'usd',
        destination: account,
        transfer_group: 'ORDER_95'
    })

    res.redirect('/')
})

我的余额图片

如您所见,我的余额足以成功创建转账。

As you can see, I have more than enough balance to be able to successfully create a transfer.

那是加元,对吧?您没有任何美元,因此无法使用 currency:'usd' 转账。

总的来说,我还建议您使用 API 检查您的余额,因为它可能会让事情变得更清楚 (https://stripe.com/docs/api/balance/balance_retrieve)。使用 stripe.transfers.create API 时,您需要有足够的 available 转账货币余额。

您可以改为使用 currency:'cad' 进行 API 调用。如果目标帐户不能以加元结算(取决于国家/地区,请参阅 https://stripe.com/docs/payouts#supported-accounts-and-settlement-currencies),目标帐户上的金额可能会自动转换为其他金额。