我正在使用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
)
);
答案 0 :(得分:0)
正如@MatthewArkin指出的那样,在Auth和Capture的情况下,申请费是在Capture(非Auth)https://stripe.com/docs/api#capture_charge上添加的。
我感到困惑的是,在创建费用https://stripe.com/docs/connect/payments-fees#fees-on-charges时,我一直看到申请费被添加。