#churchlady_payout-reconciliation-failed-payouts
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/1346168542197972993
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
However, Stripe will try to perform the payout along with subsequent payouts.
What do you mean by this?
Here is an example: https://share.boothcentral.com/YEu60xrW
Payout po_1MxK1LRUchlEhWTX7sZz50AQ failed, so it got lumped in with the next payout, which is po_1MzrT2RUchlEhWTXJuxneRdz
At least that's what I understand.
The payout object po_1MxK1LRUchlEhWTX7sZz50AQ was not re-attempted to this attempt will always show as status: failed
Are you saying that the Balance Transactions associated with po_1MzrT2RUchlEhWTXJuxneRdz do not match up?
Yes, we have code (in talking with a Stripe developer quite a few years back) that to match up the payments/charges with when it was paid out. I need to find the payouts, then from the payouts, get the balance transactions, then the charges.
That does not work for failed payouts, which was later paid
When you say that "does not work", what exactly do you mean? Do you check the paid payout and it does not include the BTs that would have been paid out with the previous payout?
Correct, but let me double check.
I am do the following to find the charges in the balance transactions
if ($balanceTransaction->source->source_transfer->source_transaction instanceof Charge) {
Will the charges in the failed payouts appear differently?
Are you iterating through a list of balance transactions associated with po_1MzrT2RUchlEhWTXJuxneRdz, or po_1MxK1LRUchlEhWTX7sZz50AQ?
po_1MzrT2RUchlEhWTXJuxneRdz
Our code check to see if the payout's status is "paid". If it is, then we find the balance transactions.
Okay and you are not finding Charges that occurred during the period that would add up to the $86.50 that was not paid out in po_1MxK1LRUchlEhWTX7sZz50AQ?
I apologize. Let me dig deeper and come back if necessary.
No problem! It's something we wish was easier (linking Payments to Payouts) and having a failed Payout added in makes it more confusing.
Totally! This is much harder than necessary.