【发布时间】:2019-11-06 00:05:04
【问题描述】:
如何使用条带连接为买家和卖家设置佣金。我正在使用https://stripe.com/docs/connect/charges-transfers。 我们想在我们的条带账户上存钱,直到卖家完成工作。金额由客户(买方)提交到条纹平台。然后,在工作完成后,它将转移到卖方条纹帐户。 (如何在客户(买方)向我们的条纹平台帐户收取费用时为两者设置佣金)?
input : 只传递 application_fee 没有 accountId
let chargeEntity = await stripe.charges.create({
amount,
//description: "Sample Charge",
source: sourceTokenId,
currency: currency,
customer: customerId,
application_fee_amount:application_fee,
//on_behalf_of:accountId
});
输出:
"message": "Can only apply an application_fee when the request is made on behalf of another account (using an OAuth key, the Stripe-Account header, or the destination parameter)."
【问题讨论】: