#dtfk
1 messages ยท Page 1 of 1 (latest)
If it has a po_123 ID, then yes. That ID is for a specific payout, it will be the same across payout.* events
But if u see in documentation definition of payout, it says "that were paid out"
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
When the payout is created, that will associate the relevant balance transactions with it already
We don't change what goes in to a payout after it is created as far as I know
U mean payout.created, paid, failed, canceled: all have same payout id?
Yes, those events show you the lifetime of individual payouts
So you would be expected to see a created event and then one of those three other events for each payout
And then payout.created & payout.paid have similar payout IDs. Correct?
Yes it's same
Tell me something, just like if we pass payout.paid payout id & type: charge.
We get list of all transactions that were charged earlier and whose payout is done.
Like the doc says some payout gets failed even after payout.paid is done.
Then the failed transaction will still appear in list when we pass payout.paid payout id & type: charge ?
I don't think failed charges would show up here as they wouldn't have balance transactions as far as I know
If you test it out, you can see for sure if any charges like that show up
Actually stripe test bank accounts are not working
So I don't know how do I test failed, canceled transaction?
If you successfully create a payout you should be able to see
Is there any error message associated with this test payout failure? Our test bank accounts should work here
Actually when I feed test bank account numbers , it says currently doesn't support test acc nos.
Oh I think I was assuming you were using a connected test account. For standard accounts you have to use a real account number
Okk. So we can test on connected account?
Yes, that should show the proper behavior here. Though it might be a weird setup if you aren't planning to be a connect platform in production
If you are planning to just use your standard account, it would probably be easier and more accurate to just add a bank account to your stripe account
Actually real bank account number for testing may not be possible as of now. I think so
So I m thinking to test with connect account
Just a quick question, it will produce the same results just like it does for standard acc?
They would be similar, I am trying to think of whether there would be differences.
What exactly are you trying to do with these balance transactions?
Actually I m implementing a functionality in which I need to update payment status of different transactions whether their payout is done or not. In other words, whenever we charge the customer, the amt goes to stripe balance and then to bank account.
Now if it is successfully transferred to bank....status update : success
If transfer failed: ......status: failed
Hello ๐
Taking over as Pompey needs to step away soon
Hello hanzo
It shouldn't produce a diff behavior for standard accounts. Payouts' object structure should be consistent across the board
and it will behave similarly with connect acc as well?
yes
how does payout.cancel happen?
https://stripe.com/docs/api/payouts/cancel
A previously created payout can be canceled if it has not yet been paid out. Funds will be refunded to your available balance. You may not cancel automatic Stripe payouts.
so its manual process?
Yes
if a manual payout is created then that payouts can be canceled manually
Yes
But do automatically payouts get canceled?
As far as I know, no.
Ok thanks Hanzo
NP! ๐ Happy to help