#hoffemberg_connect-disconnect

1 messages ยท Page 1 of 1 (latest)

night pollenBOT
#

๐Ÿ‘‹ 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.

cerulean chasm
#

@neat bobcat no they can't

#

hoffemberg_connect-disconnect

neat bobcat
#

Okay, so if they want to delete their connection they would just have to go into the Stripe dashboard and disable it?

cerulean chasm
#

not really ๐Ÿ˜…

#

Sorry there are dozens of ways to integrate Stripe Connect. Mostly as the platform you control all of this.

neat bobcat
#

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?

cerulean chasm
#

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?

neat bobcat
#

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.

cerulean chasm
#

Sorry that's still super vague. Can you please share the exact code you are using for creating the Stripe account (nothing else)

neat bobcat
#

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()));
    }
}
cerulean chasm
#

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?

neat bobcat
#

acct_1PyKsyI3eGHvQmr5

cerulean chasm
#

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.

neat bobcat
#

Is it possible for us to delete that account for them?

cerulean chasm
neat bobcat
#

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.

cerulean chasm
#

yeah I don't think it will work for your specific situation, it's just impossible to disconnect or delete

neat bobcat
#

I think in Europe this would be illegal lol.

cerulean chasm
#

I mean they can close their account if they want. But they can't disconnect it

neat bobcat
#

And they could close it from their dashboard?

cerulean chasm
#

yes

neat bobcat
#

Okay, that helps. Thanks so much.