What is CONNECTED_STRIPE_ACCOUNT_ID? How to get it from the Android platform?

I am working on a Ride Sharing app and I am choosing Stripe as the payment procedure. What happens in the application that the rider can overturn the driver. To do this, I used this approach, which Rider will pay in the App Stripe account, and then the application will save its percentage, and then transfer the remaining amount to the driver account.

So far, everything is going well. App successfully charged the rider, but a little confused transferring the amount to the driver's account. I looked at the documentation on the strip saying that I need an account with CONNECTED_STRIPE_ACCOUNT_ID drivers, which I cannot find and cannot understand what it is. What is a strip account? How can I add a user to the bandwidth connection from android to my platform?

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 explained this to me. Thanks to Ps, I don't want to use webview in my application anyway. I am not allowed to use it.

+6
source share
1 answer

There are three different ways to create a board using Connect:

Which method you should use depends on your specific use case, as it also determines who pays Stripe fees and who is responsible for the refund and refund. Check out this paragraph to help you decide which method is best for your business.

In the first two cases, you define your platform with the application_fee parameter and the destination address identifier ( "acct_..." ) in the Stripe-Account or destination header.

The account ID must be in your database. If you use standard accounts or Express accounts , then you will receive it at the end of the OAuth stream in the stripe_user_id field. If you use user accounts , you will receive it in id in response to the request to create an account . In all cases, you need to store this identifier in your database so that you can receive it for issuing API requests and accept payments on behalf of this account.

+6
source

All Articles