什么是CONNECTED_STRIPE_ACCOUNT_ID?如何从android平台获取它? [英] What is CONNECTED_STRIPE_ACCOUNT_ID? How to get it from android platform?

查看:73
本文介绍了什么是CONNECTED_STRIPE_ACCOUNT_ID?如何从android平台获取它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ride Sharing应用,我选择 Stripe 作为付款程序.应用程序中发生了什么,骑手可以向驾驶员提示.为此,我将使用Rider支付到应用程序的 stripe 帐户,然后应用程序将保留其百分比,然后将剩余金额转移到驾驶员的条纹帐户.

I am working on Ride Sharing app and i choose Stripe as payment procedure. 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.

到目前为止一切都进展顺利.App已成功向骑手收取了费用,但对于将金额转入驾驶员的条纹帐户感到有些困惑.我查看了条带文档,该文档说我需要驾驶员的条带帐户 CONNECTED_STRIPE_ACCOUNT_ID ,但我找不到它,也无法弄清楚它是什么.什么是条纹连接帐户?我如何添加用户以从Android到我的平台进行条带化连接?

So far everything is going good.App has successfully charged the rider but bit confused about transfering amount to driver's stripe account. 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. What is stripe connect account is? how can i add user to stripe connect from android to my platform?

这是Stripe提供的代码段

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);

如果有人向我解释这一点会很好.谢谢,我在任何情况下都不想在我的应用程序中使用 webview .我不允许使用它.

It would be nice if someone explain this to me. Thanks P.s i don't want to use webview in my app in any case. I am not allowed to use it.

推荐答案

有三种方法创建通过Connect收费:

  • direct charges (i.e. with the Stripe-Account header)

目的地费用(例如,

destination charges (i.e. with the destination parameter)

分开收费和转移(您首先在其中创建"正常"费用支付给您平台的帐户,然后创建转帐以将资金发送到目标帐户)

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)

您应该使用哪种方式取决于您的确切用例,因为它还确定了谁支付Stripe的费用以及谁负责退款和退款.查看本段,以帮助您确定最适合您的业务的方式

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. Check out this paragraph to help you decide which way is best suited for your business.

在前两种情况下,您可以使用 application_fee指定平台的切割 参数,以及 Stripe-Account 标头或目的地的目标帐户的ID("acct _..." )参数.

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.

帐户ID应该在您的数据库中.如果您使用标准帐户自定义帐户,则可以在 id 字段/stripe.com/docs/api#create_account"rel =" nofollow noreferrer>帐户创建请求.在任何情况下,您都需要将此ID保存在数据库中,以便检索该ID来发出API请求并代表该帐户接受付款.

The account ID should be in your database. 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. If you use custom accounts, then you get it in the id field in the response to the account creation request. 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.

这篇关于什么是CONNECTED_STRIPE_ACCOUNT_ID?如何从android平台获取它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆