收费连接条纹帐户
Charge connected stripe account
我正在使用 Stripe API 和 Stripe Connect。我想从客户转账到 Express Connected 账户。我想用direct charges,但是文档上说的不清楚,应该怎么用。文档说:
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}"
据我了解,这意味着将向关联帐户收费。但是文档没有说明如何移动到连接的帐户。
不,此请求会 charge the customer's payment source (represented by the token in the source
parameter -- in this example, it's a static test token, but in a live integration you'd generate a token from the customer's card using Checkout or Elements), and the funds would be sent to the connected account specified in the Stripe-Account
header。
如果您想从这笔交易中分一杯羹,您需要添加一个 application_fee
参数。然后,在创建费用时,资金将自动拆分,申请费将添加到您平台的余额中,其余部分(费用减去您的申请费和 Stripe 自己的费用)将添加到关联账户的余额中。
我正在使用 Stripe API 和 Stripe Connect。我想从客户转账到 Express Connected 账户。我想用direct charges,但是文档上说的不清楚,应该怎么用。文档说:
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}"
据我了解,这意味着将向关联帐户收费。但是文档没有说明如何移动到连接的帐户。
不,此请求会 charge the customer's payment source (represented by the token in the source
parameter -- in this example, it's a static test token, but in a live integration you'd generate a token from the customer's card using Checkout or Elements), and the funds would be sent to the connected account specified in the Stripe-Account
header。
如果您想从这笔交易中分一杯羹,您需要添加一个 application_fee
参数。然后,在创建费用时,资金将自动拆分,申请费将添加到您平台的余额中,其余部分(费用减去您的申请费和 Stripe 自己的费用)将添加到关联账户的余额中。