#hoffemberg_connect-disconnect
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1290443906541944895
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Okay, so if they want to delete their connection they would just have to go into the Stripe dashboard and disable it?
not really ๐
Sorry there are dozens of ways to integrate Stripe Connect. Mostly as the platform you control all of this.
So, for example, I store their Stripe account id, like acct_PviiOlpxDgpvtWD, in our db with their user id on our platform. I could just delete that information to sever the connection, but the connection would still exist on Stripe's end. They just wouldn't be able to access it from our platform. Is this what you mean?
Not really either sorry
Step 1: what exact integration are you using? What is the exact type of connected account you are using or how you create it?
We are using Stripe Connect with a Stripe hosted dashboard. So if a user wants to use our platform to collect payments, they get connected through an Account.create() API call, then AccountLink.Create() redirects them to set up their Stripe-hosted dashboard. Then we provide ways for them to generate links to Stripe-hosted invoices, and then use webhooks to track payments and display them for the user.
Sorry that's still super vague. Can you please share the exact code you are using for creating the Stripe account (nothing else)
public String createAccount(String userId) {
try {
Account account = Account.create(AccountCreateParams.builder().build());
CreateAccountResponse accountResponse = new CreateAccountResponse(account.getId());
MultiMap mm = new MultiMap();
MapItem<String> user = new MapItem<>(userId);
MapItem<String> stripeAccountId = new MapItem<>(accountResponse.getAccount());
mm.addValue("userId",user);
mm.addValue("stripeAccountId",stripeAccountId);
String accountId = mm.getValue("stripeAccountId");
String userIdMm = mm.getValue("userId");
CreateEvent<MultiMap> createEvent = new CreateEvent<MultiMap>(mm);
UserStripeDAO userStripeDAO = userStripeService.createUserStripe(createEvent).getObject();
return gson.toJson(accountResponse);
} catch (Exception e) {
System.out.println("An error occurred when calling the Stripe API to create an account: " + e.getMessage());
return gson.toJson(new ErrorResponse(e.getMessage()));
}
}
hum I am... baffled.
How does Account account = Account.create(AccountCreateParams.builder().build()); even work, you're passing absolutely no parameters
Can you share an example connected account id so I can have a look?
acct_1PyKsyI3eGHvQmr5
okay well I didn't even know that was possible ๐
But looks like you have a barebone integration and mostly create Standard accounts (that's the key piece of information I was trying to get from you)
So here you are a platform, you control that connected account you created and it's impossible for the owner of that Stripe account to "revoke" access to their account for your platform.
https://docs.stripe.com/api/accounts/create No params are actually requires for this call unless you want to pre-fill them
Is it possible for us to delete that account for them?
https://docs.stripe.com/api/accounts/delete seems to say yes. I'd recommend trying and seeing what happens with a test account to be sure
Aha, this is what I was looking for, and strangely could not see. Thanks for pointing it out. ๐คฆโโ๏ธ
We are letting Stripe deal with negative account balances so it looks like we will not be able to delete.
But I will test.
yeah I don't think it will work for your specific situation, it's just impossible to disconnect or delete
I think in Europe this would be illegal lol.
I mean they can close their account if they want. But they can't disconnect it
And they could close it from their dashboard?
yes
Okay, that helps. Thanks so much.