[英]What is CONNECTED_STRIPE_ACCOUNT_ID? How to get it from android platform?
I am working on Ride Sharing app and i choose Stripe
as payment procedure. 我正在开发Ride Sharing应用程序,我选择Stripe
作为付款程序。 What happens in app that rider can tip to driver. 在应用程序中会发生什么,骑手可以提示给司机。 For this i used this approach that, Rider will pay to the App's stripe
account and then app will keep its percentage and then it will transfer remaining amount to driver's stripe account. 为此我使用这种方法,Rider将支付给App的stripe
帐户,然后应用程序将保留其百分比,然后它将剩余金额转移到驱动程序的条带帐户。
So far everything is going good.App has successfully charged the rider but bit confused about transfering amount to driver's stripe account. 到目前为止,一切都很顺利.App已经成功地向骑手收取了费用但是对于将金额转移到驾驶员的条带帐户有点困惑。 I have looked into stripe documentation which says i need driver's stripe account CONNECTED_STRIPE_ACCOUNT_ID
, which i am unable to find and unable to figure out what is it. 我查看过条纹文档,说我需要驱动程序的条带帐户CONNECTED_STRIPE_ACCOUNT_ID
,我无法找到它,也无法弄清楚它是什么。 What is stripe connect account is? 什么是条纹连接帐户? how can i add user to stripe connect from android to my platform? 如何添加用户从android到我的平台条纹连接?
This is the code snippet provided by stripe 这是条带提供的代码段
Stripe.apiKey = PLATFORM_SECRET_KEY;
Map<String, Object> transferParams = new HashMap<String, Object>();
transferParams.put("amount", 1000);
transferParams.put("currency", "gbp");
transferParams.put("destination", {CONNECTED_STRIPE_ACCOUNT_ID});
Transfer.create(transferParams);
It would be nice if someone explain this to me. 如果有人向我解释这将是很好的。 Thanks Ps i don't want to use webview
in my app in any case. 谢谢Ps我不想在任何情况下在我的应用程序中使用webview
。 I am not allowed to use it. 我不被允许使用它。
There are three different ways to create charges with Connect : 使用Connect 创建收费有三种不同的方式:
direct charges (ie with the Stripe-Account
header) 直接收费 (即使用Stripe-Account
标头)
destination charges (ie with the destination
parameter) 目的地费用 (即destination
参数)
separate charges and transfers (in which you first create a "normal" charge on your platform's account, then create transfers to send funds to the destination accounts) 单独收费和转账 (您首先在您平台的账户上创建“正常”费用,然后创建转账以将资金发送到目标账户)
Which way you should use depends on your exact use case, as it also determines who pays Stripe's fees and who's responsible for refunds and chargebacks. 您应该使用哪种方式取决于您的确切用例,因为它还决定谁支付Stripe的费用以及谁负责退款和退款。 Check out this paragraph to help you decide which way is best suited for your business. 查看此段以帮助您确定哪种方式最适合您的业务。
In the first two cases, you'd specify your platform's cut with the application_fee
parameter, and the destination account's ID ( "acct_..."
) in either the Stripe-Account
header or the destination
parameter. 在前两种情况下,您将使用application_fee
参数指定平台的cut,并在Stripe-Account
标头或destination
参数中指定目标帐户的ID( "acct_..."
)。
The account ID should be in your database. 帐户ID应该在您的数据库中。 If you use standard accounts or Express accounts , then you get it at the end of the OAuth flow , in the stripe_user_id
field. 如果您使用标准帐户或Express帐户 ,则可以在OAuth流程的末尾,在stripe_user_id
字段中获取该stripe_user_id
。 If you use custom accounts , then you get it in the id
field in the response to the account creation request . 如果您使用自定义帐户 ,则可以在帐户创建请求的响应中的id
字段中获取该帐户 。 In all cases, you need to save this ID in your database so you can retrieve it to issue API requests and accept payments on behalf of this account. 在所有情况下,您都需要将此ID保存在数据库中,以便您可以检索它以发出API请求并代表此帐户接受付款。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.