我正在使用 Stripe Connect 代表关联账户创建费用。在此过程中,我会收取申请费。当我将capture
标志设置为true
(默认行为)时,一切正常。当我将capture
标志设置为 时false
,应用程序费用不再返回响应中的值。我的问题是,Stripe Connect 是否允许我推迟捕获费用(又名 Auth 和 Capture)?
// Create a token for the existing customer on the connected account
$token = \Stripe\Token::create(
array("customer" => $stripe_customer_id, "card" => $stripe_card_id),
array("stripe_account" => $stripe_account_id) // Stripe ID of the connected account
);
// Create the charge
$charge = \Stripe\Charge::create(
array(
"amount" => ($total_amount)*100,
"currency" => "usd",
"source" => $token->id,
"application_fee" => ($app_fee)*100,
"capture" => false,
"description" => $product_name." - ".$street_adddress, // Used in the subject line of the receipt email that is sent to the end customer
"receipt_email" => $receipt_email,
"statement_descriptor" => $product_name
),
array(
"stripe_account" => $stripe_account_id
)
);