嗨,我正在使用Stripe PHP API为客户构建一个平台,该平台按月销售订阅以授权内容。我与客户达成协议,分享每个订阅所收取费用的50%。
我使用了以下代码片段来创建订阅:
$stripe->subscriptions->create([
'customer' => '{{CUSTOMER}}',
'items' => [['price' => '{{PRICE}}']],
'expand' => ['latest_invoice.payment_intent'],
'application_fee_percent' => 10,
'transfer_data' => ['destination' => '{{CONNECTED_STRIPE_ACCOUNT_ID}}'],
]);
我想知道如何将我所占的10%的一半自动转账到另一个连接的账户(我的账户)...有人可以帮我吗?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号