【问题标题】:Charge connected stripe account向已连接的条带帐户收费
【发布时间】:2023-03-18 03:55:01
【问题描述】:

我正在使用 Stripe API 和 Stripe Connect。我想将钱从客户转账到 Express Connected 账户。我想使用direct 费用,但从文档中不清楚,我应该如何使用它。文档说:

To directly charge on the connected account, perform a standard 
create charge request using your platform’s secret key while 
authenticated as the connected account:

curl https://api.stripe.com/v1/charges \
   -u {STRIPE_SECRET_TOKEN}: \
   -d amount=1000 \
   -d currency=usd \
   -d source=tok_visa \
   -H "Stripe-Account: {CONNECTED_STRIPE_ACCOUNT_ID}"

据我了解,这意味着将向关联的帐户收费。但是文档并没有说明如何转移到已连接的帐户。

【问题讨论】:

    标签: stripe-payments stripe-connect


    【解决方案1】:

    不,此请求将 charge 客户的付款来源(由 source 参数中的令牌表示 - 在本示例中,它是静态的 test token,但在实时集成中,您将生成一个令牌使用CheckoutElements从客户的卡中提取资金,资金将发送到Stripe-Account标头中指定的关联账户。

    如果您希望取消此交易,您需要添加一个application_fee 参数。然后,在创建费用时,资金将自动拆分,申请费将添加到您平台的余额中,其余部分(费用金额减去您的申请费和 Stripe 自己的费用)将添加到关联账户的余额中。

    【讨论】:

    • 非常感谢。我真的被To directly charge on the connected account 短语弄糊涂了
    • @Ywain,我有更多疑问,您可以解释一下吗?
    猜你喜欢
    • 1970-01-01
    • 2021-07-20
    • 1970-01-01
    • 2020-03-07
    • 2019-09-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-09
    相关资源
    最近更新 更多