#anjan_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1247644090477187106
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi, what does 'user's mean here? Can you add a bit more details about your specific flow and business use case?
Hi. Our users are either businesses or individuals.
A specific example: for businesses, we administer an employer-benefit that enables them to link their bank accounts and deposit funds for their employees. We're able to accomplish this using the SetupIntent -> Payment Method -> PaymentIntent.
There are also circumstances in which businesses will need to be able to "withdraw" unused funds back into the account that they've linked. I'm looking to understand the best way to accomplish that.
If you're using PaymentIntent, you can use Refunds no?
It's technically not a Refund. It's essentially a fresh transaction from their perspective.
Another flow that we'll want to be able to provide is the ability for an employee of that employer (i.e. an individual) to link their own bank accounts and receive fresh funds in that linked account, perhaps never having created a PaymentIntent in the first place.
Are Refunds still the recommended way to accomplish this?
If you're looking to send funds between accounts, you might want to look into connect, https://docs.stripe.com/connect/accounts. You can charge the customer for funds like creating a PaymentIntent you shared above. Then, you can also transfer these funds to other accounts later, https://docs.stripe.com/connect/separate-charges-and-transfers.
Without Connect, there is just a buyer and seller relationship in this use case. The buyer pays, and if you need to send funds back, you would issue a refund.
Makes sense. Then I have a couple follow up questions:
How do we set up a Connect account using the Stripe Financial Connection flow? From the user's perspective, we'd want them to see the Financial Connection modal in which they can authenticate their bank account, and then we'd like to be able to use that bank account via Connect.
When Connect is set up, is the mechanism by which funds are sent to the bank account the "Transfer"? What are the steps to creating this?
And finally, is it possible to still continue using Payment Intents for ACH debits?
Yes, you can use Financial Connections when collection bank accounts to send payouts: https://docs.stripe.com/financial-connections/connect-payouts
You first transfer the funds to the connected account, https://docs.stripe.com/api/transfers/create and then, you can create a payout: https://docs.stripe.com/api/payouts/create for a manual payout. Alternatively, you can set an automatic payout and set a schedule for a specific cadence https://docs.stripe.com/api/accounts/update#update_account-settings-payouts
Hmm, some of those links don't seem to be loading.
They are loading for me. Can you share which ones are not working?
For your first link, are there any resources/guides that show exactly which endpoints our server needs to call in order to set up the Connect account?
I ask because it took a little bit of investigation to work out that for the PaymentIntent flow, our server needs to create a SetupIntent (with a client secret), return that back to the client, and the client needs to use the SDK to invoke collectBankAccountForSetup with the payment_method_type of us_bank_account. What does this look like for Stripe Connect?
This link isn't loading for me: https://docs.corp.stripe.com/api/transfers/create
Sorry, that was my mistake. Can you try this, https://docs.stripe.com/api/transfers/create ?
Thanks for sending that.
And is it still possible to both set up a Payment Method (which can be used for Payment Intents) as well as a Connect account in the background after the user selects and authenticates their bank account?
That won't work, I tested this a while.
Can you clarify?
It won't work to collect the details for a Payment flow, and then try to use the same account for a Payout for Connected Accounts.
Then is the only way to do it to collect the details twice?
Yes
How do I set up a debit from a Stripe Connect account?
๐ Stepping in for my teammate
I recommend reviewing this: https://docs.stripe.com/connect/account-debits