#malle_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/1259852125404532798
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi there ๐ that's not a scenario I've personally tried before, so I'm going to need to a bit more digging. Offhand, I don't think so, I think the funds from the Invoice would land in the Stripe Account balance and would then need to be moved to the Treasury Account, but I'm still checking that.
From all research I've done what could be feasible is issuing the invoices from our own stripe account using the on_behalf_of param, then collecting the funds ourselves and using webhooks to trigger a outboundPayment from our treasury account to the users financial account. But it's a very hacky way to do it in my opinion
What's hacky about that? That seems like a fairly normal flow if you need to use a Destination Charge structure to your flow like you're describing.
Are you saying you'd rather have the entire Invoice and it's transaction happen on the Connected Account rather than your Platform?
Yes, in my head ideally all invoices, customers and transactions are contained within the users connected account but I can give the above a try
Well if you want everything on the Connected Account, that's a Direct Charge flow. Instead of using on_behalf_of to make the Connected Account the merchant of record, you can use the stripeAccount header to create the Invoice on the Connected Account instead.
https://docs.stripe.com/api/connected-accounts
https://docs.stripe.com/invoicing/connect#direct
Yes true, that's probably the way to go. Just another quick question, after the payment lands in the users stripe account and I want to move it to their financial account what's the correct API to use? Payouts? Can the destination there be a financial account id ("fa_xyz")?
Yes, I believe that's correct. Instructions for creating manual payouts to do this are shown here, but let me know if that gives you any troubles:
https://docs.stripe.com/treasury/moving-money/payouts#manual-payouts