1

我正在使用 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
            )
        );
4

1 回答 1

0

正如@MatthewArkin 指出的那样,在 Auth 和 Capture 的情况下,应用程序费用是在 Capture(不是 Auth)https://stripe.com/docs/api#capture_charge时添加的。

我的困惑是,我一直看到在创建费用时添加了申请费https://stripe.com/docs/connect/payments-fees#fees-on-charges

于 2016-01-20T20:49:08.707 回答