Customer1是在扣除(平台费+条纹费)后向Customer2支付的。运行这样的场景。我在Stripe-Connect中执行了以下步骤
Connected account部分看到创建的帐户。
Legal entity后验证帐户。Charge对象(Customer1正在付费),它也有一个application_fee。请求中提到的目标帐户是新生成的Customer2帐户。我正在使用Java API,它向我抛出了一个错误:
Can only apply an application_fee when the request is made on behalf of another account (using an OAuth key, the Stripe-Account header, or the destination parameter).我试图在这里跟进StackOverflow,似乎我需要创建一个platform account来发起这样的指控。如果是这样,我如何创建一个Platform account?
在扣除Customer1后,它将如何帮助我向Customer2 connect帐户收取application_fee费用并转帐到application_fee帐户?
我觉得有点困惑。任何帮助或暗示都是值得赞赏的。
发布于 2017-11-05 14:43:19
你在这里已经有一个平台帐户了。这是一个简单的词,用来描述连接帐户的主帐户(您的)。
这里的问题似乎是你创造电荷的方式。只有当您显式地代表已连接的帐户提出该请求时,才能收取申请费。目前有两种方法可以做到这一点:
由于您使用的是自定义帐户,您在这里为您的卖家创建和拥有帐户,所以您应该使用第一种方法。在这种情况下,你甚至不需要收取申请费。相反,您只需决定在创建计费时发送到连接帐户的金额。这个想法是,你收取100美元,你只发送90美元到连接的帐户,这样你就可以为自己保留10美元(减去Stripe的费用)。
代码将如下所示:
// Create the list of parameters for the charge
Map<String, Object> params = new HashMap<String, Object>();
params.put("amount", 10000); // amount to charge in cents
params.put("currency", "usd");
params.put("source", "tok_visa");
// Decide how what to send to the connected account
Map<String, Object> destinationParams = new HashMap<String, Object>();
destinationParams.put("account", "acct_XXXXX"); // connected account id
destinationParams.put("amount", 9000); // amount to send to the connected account
params.put("destination", destinationParams);
Charge charge = Charge.create(params);https://stackoverflow.com/questions/47117687
复制相似问题