#bryan_07234
1 messages ยท Page 1 of 1 (latest)
Hi hanzo.
It seems like the Transfer object received back when I send a Transfer to the API says that the transfer was successful. What would happen if it was not successful?
Would the call to TransferService.Create just throw an exception?
Hello ๐
AFAIK transfers are instant as soon as long as the funds have settled. If you're using source_transaction parameter then the transfer is pending until the funds settle.
https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-availability
If your account doesn't have funds for the transfer then the transfer would fail with insufficient balance error.
Since you're using Destination charges, my understanding is that the automatic transfer should always succeed.
OK thank you. I think the Stripe service would throw an error in my code if it failed for any reason.
So I just need to catch that error.
OK, I read the page you linked about PaymentIntent. That looks like you're sending payment info for a group of transfers, but have not deposited the money into the Stripe account to pay them yet. Is that right?
In our case, we are not collecting payments from Connect accounts and then paying that out to other Connect accounts. We are manually depositing into our Stripe acct and then only sending transfers to Connect accounts.
So I think all I need to deal with is either a successful transfer object or an error.
In that case, what does the Transfer.Created events sent to my webhook do for me? Seems like I could just ignore it... unless there's some info in there i need.
OK, I read the page you linked about PaymentIntent. That looks like you're sending payment info for a group of transfers, but have not deposited the money into the Stripe account to pay them yet. Is that right?
Yes those guides refer to transferring funds from payments that are coming in from customers and then transferring.
In our case, we are not collecting payments from Connect accounts and then paying that out to other Connect accounts. We are manually depositing into our Stripe acct and then only sending transfers to Connect accounts.
So I think all I need to deal with is either a successful transfer object or an error.
Gotcha. In this case, I only foresee an error if the account balance is less than the transfer amount.
In that case, what does the Transfer.Created events sent to my webhook do for me? Seems like I could just ignore it... unless there's some info in there i need.
Not really. Often merchants store some information in transfer metadata like what is this transfer for and so on which you do get to access ontransfer.createdevent.
Ah, OK got it. I think all the info I need is in the Transfer object. So I'll ignore the webhook event then. THank you very much!
NP! ๐ Happy to help
Just a question -- are you all Stripe employees that answer questions here?
Yes, we're Stripe Engineers ๐
Awesome - what a great idea to have a Discord channel for quick answers to dev questions. ๐
So you are in a support department at Stripe? I ask because I have been a support programmer for 35 years with medical software. We have always used things like Salesforce tickets and email to communicate. Discord is way easier for simple questions and quick responses.
Although in my support role, I deal with users of the product rather than software developers.
Our team is a mixture of pretty much ~everything ๐ Like supporting Stripe users/developers, internal employees, working with product teams and more..
Ah OK. Sounds like a great job. And all online too.