#dusk-_docs
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/1240214874265747527
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- dusk-_docs, 6 days ago, 29 messages
- dusk-_api, 6 days ago, 64 messages
Hi! ๐
How can we allow them to do so after their account onboarding has finished?
First you need to decides what Charge type you want to use:
https://support.stripe.com/questions/how-to-accept-donations-through-stripe
And what type of Connect Account (Express, Custom or Standard)
Then you can refer to one of these links:
https://support.stripe.com/questions/how-to-accept-donations-through-stripe
Custom Account
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
Okay!
You can let the donators choose what to pay following this guide!
Hi! Apologies for jumping directly into the discussion.
Yes the idea that the platform(you) creates the Checkout Session
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
And you specify destination
After creating and onboarded the Connect Account, you follow this guide step by step:
https://docs.stripe.com/connect/destination-charges?platform=web&ui=stripe-hosted&lang=python
Do we need to since we've already connected their bank account to the stripe acc
This is extremely useful!
Yes you need to specify the destination Connect Account: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-transfer_data-destination
Because the platform(you) creates the Checkout Sessison and they need to specify the resulting amount will go to what Connect account
And you can collect your application fee
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?
You mean use one single link for all organization ?
You can use Stripe Payment Link, that can be reused by multiple end customer
So you create a PaymentLink for each Organization:
https://docs.stripe.com/api/payment_links/payment_links/create#create_payment_link-transfer_data
And then each organization will use their own link
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
Yes so you create 3 PaymentLinks, one for each Connect Account
Secondly, is there a way for us to know when the user is done with onboarding? Do the embedded html/js emit any events?
The link doesn't expire, correct?
You need to listen to the account.updated event
yes payment links doesn't expire
Love that! Thank you
You were really helpful. Thanks a bunch again and have a great day!
Happy to help! Have a nice day!
Sorry haha but is there a doc page that lists all the events for embeddable components
No there is no direct related events to embeddable components, but in general here is the Connect Webhook guide:
https://docs.stripe.com/connect/webhooks#:~:text=Connect webhooks are for activity on any connected account. All events on the connected account are sent to the Connect webhooks. This includes the important account.updated event for any connected account and direct charges.
Lovely