首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >条纹连接-8月和捕获可能?

条纹连接-8月和捕获可能?
EN

Stack Overflow用户
提问于 2016-01-18 20:48:18
回答 1查看 894关注 0票数 1

我正在使用Stripe为相关帐户创建收费。在此过程中,我收取申请费。当我将capture标志设置为true (默认行为)时,一切都正常工作。当我将capture标志设置为false时,应用程序费将不再以响应中的值返回。我的问题是,Stripe是否允许我延迟捕捉电荷(也就是8月和捕获)?

代码语言:javascript
复制
        // 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
            )
        );
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-01-20 20:49:08

正如@MatthewArkin所指出的,在Auth和Capture的情况下,申请费是在Capture (而不是Auth) charge上添加的。

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34863803

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档