我正在使用Stripe为相关帐户创建收费。在此过程中,我收取申请费。当我将capture标志设置为true (默认行为)时,一切都正常工作。当我将capture标志设置为false时,应用程序费将不再以响应中的值返回。我的问题是,Stripe是否允许我延迟捕捉电荷(也就是8月和捕获)?
// 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
)
);发布于 2016-01-20 20:49:08
正如@MatthewArkin所指出的,在Auth和Capture的情况下,申请费是在Capture (而不是Auth) charge上添加的。
令我困惑的是,在创建https://stripe.com/docs/connect/payments-fees#fees-on-charges时,我一直看到申请费被添加。
https://stackoverflow.com/questions/34863803
复制相似问题