【问题标题】:Insufficient funds in Stripe even with funds and manual payouts enabled即使启用了资金和手动支付,Stripe 中的资金也不足
【发布时间】:2021-07-24 09:35:03
【问题描述】:

我无法从paymentIntent 生成transfer,我已启用手动付款并且我的测试余额中有资金.. 我也尝试在传输对象中添加source_transaction,但没有成功

我得到:

StripeInvalidRequestError:Stripe 帐户中的资金不足。在 测试模式,您可以将资金添加到您的可用余额中(绕过您的 未结余额)通过创建一个收费 4000 0000 0000 0077 作为 卡号

我已经添加了这个测试卡号.. paymentIntent 创建成功:

const paymentIntent = await stripe.paymentIntents.create(
  {
    amount: amount,
    currency: "usd",
    payment_method_types: ["card"],
    transfer_group: "{ORDER11}",
  }
) 

这是我失败的转移对象:

const transfer = await stripe.transfers.create({
          amount: orderAmount,
          currency: "usd",
          destination: sellerAccountId,
          transfer_group: "{ORDER11}",
          source_transaction: pi.charges.data.id,
});

感谢您的帮助

【问题讨论】:

    标签: node.js stripe-payments


    【解决方案1】:

    只要确定一下,这个付款意图是 confirmed 吗?是否有 status=succeeded (API ref)?

    您的source_transaction 中可能只有一个小错误,它需要是pi.charges.data**[0]**.id,因为data 是一个您必须提供索引的数组。

    【讨论】:

      猜你喜欢
      • 2020-04-14
      • 2018-08-30
      • 1970-01-01
      • 2018-12-08
      • 1970-01-01
      • 2019-09-05
      • 1970-01-01
      • 2016-05-03
      • 1970-01-01
      相关资源
      最近更新 更多