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.
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?
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 P.s i don't want to use webview
in my app in any case. I am not allowed to use it.