android - The 'destination' param cannot be set to your own account. Stripe -


i create manage account . , create test account send payment it. want payment managed account application fee it. , send remaining of payment test account .

stripe.apikey = "sk_test_...";  map<string, object> chargeparams = new hashmap<string, object>(); chargeparams.put("amount", 1000); chargeparams.put("currency", "usd"); chargeparams.put("source", {token}); chargeparams.put("destination", {connected_stripe_account_id});  charge.create(chargeparams); 

but exception "the 'destination' param cannot set own account". dont know make mistake.

you should not creating charges directly android app.

the part of payment flow takes place directly in mobile app collection , tokenization of customer's payment information, through use of stripe's android sdk. done publishable api key.

all other operations require use of secret api key, should never embedded or shared in way mobile app, easy attacker retrieve , use access account.

once you've collected customer's payment information , created token, need send token backend server can use create charge or a customer.

in regard specific error you're seeing, it's happening because set destination parameter own account's id. when creating charges through platform, destination parameter must set id of account connected platform, not own platform's account id.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -