#dusk-_docs

1 messages ยท Page 1 of 1 (latest)

vapid crownBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

distant portalBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

high yacht
#

Hi! ๐Ÿ™‚

lament saffron
#

And what type of Connect Account (Express, Custom or Standard)

high yacht
#

Custom Account

lament saffron
lament saffron
high yacht
#

Yeah. Since we're a bank, we added the bank account they have with us as an external account to the stripe account object we create

lament saffron
#

Ok cool

#

Then you need to create a destiantion charge using Stripe Checkout

high yacht
#

Okay!

lament saffron
high yacht
#

Um, they don't have a dashboard

#

So can we create a payment link on behalf of them

lament saffron
high yacht
#

No worries haha

#

Can I share some python code with you

lament saffron
high yacht
#
    async def create_account_for_onboarding(
        self,
        email: str,
        company: Account.CreateParamsCompany,
        external_account: Account.CreateParamsBankAccount,
        metadata: dict[str, str] = {},  # noqa: B006
    ) -> Account:
        return await self._create_account(
            Account.CreateParams(
                business_type="non_profit",
                capabilities={
                    "card_payments": {"requested": True},
                    "transfers": {"requested": True},
                    "us_bank_account_ach_payments": {"requested": True},
                },
                controller={
                    "stripe_dashboard": {"type": "none"},
                    "fees": {"payer": "application"},
                    "losses": {"payments": "application"},
                    "requirement_collection": "application",
                },
                company=company,
                country="US",
                email=email,
                external_account=external_account,
                metadata=metadata,
            )
        )

This is how we're creating the account

lament saffron
#

And you specify destination

lament saffron
high yacht
lament saffron
#

And you can collect your application fee

high yacht
#

I see

#

What we would essentially like to do is just show them the donation link on our platform.

What the non-profit shall do is copy the donation link and embed it inside their website. This will donors donate to them through Stripe on their site

#

Is something like that possible?

lament saffron
#

You mean use one single link for all organization ?

#

You can use Stripe Payment Link, that can be reused by multiple end customer

#

And then each organization will use their own link

high yacht
#

Not all organization. Basically something like a donation link per account

#

So if we have 3 non profits we onboarded, we have 3 account objects we made.

We'd like to show each one of them an embeddable donation url

lament saffron
#

Yes so you create 3 PaymentLinks, one for each Connect Account

high yacht
#

Secondly, is there a way for us to know when the user is done with onboarding? Do the embedded html/js emit any events?

high yacht
lament saffron
lament saffron
high yacht
#

You were really helpful. Thanks a bunch again and have a great day!

lament saffron
#

Happy to help! Have a nice day!

high yacht
#

Sorry haha but is there a doc page that lists all the events for embeddable components

high yacht
#

Lovely

vapid crownBOT