#churchlady_payout-reconciliation-failed-payouts

1 messages ยท Page 1 of 1 (latest)

slow kettleBOT
#

๐Ÿ‘‹ 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.

remote kayak
#

However, Stripe will try to perform the payout along with subsequent payouts.

What do you mean by this?

vital musk
#

At least that's what I understand.

remote kayak
#

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?

vital musk
#

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

remote kayak
#

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?

vital musk
#

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?

remote kayak
#

Are you iterating through a list of balance transactions associated with po_1MzrT2RUchlEhWTXJuxneRdz, or po_1MxK1LRUchlEhWTX7sZz50AQ?

vital musk
#

po_1MzrT2RUchlEhWTXJuxneRdz

Our code check to see if the payout's status is "paid". If it is, then we find the balance transactions.

remote kayak
#

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?

vital musk
#

I apologize. Let me dig deeper and come back if necessary.

remote kayak
#

No problem! It's something we wish was easier (linking Payments to Payouts) and having a failed Payout added in makes it more confusing.

vital musk
#

Totally! This is much harder than necessary.