#alpha_mouse

1 messages · Page 1 of 1 (latest)

woven nexusBOT
odd sparrow
#

Hi, let me help you with this.

#

Could you please share an example PaymentIntent ID for both cases pi_xxx?

fringe venture
#

A PI that has completed and has a balance transaction: pi_3O0H3aFgNLsBpw0P0mnNmXlz. One that doesn't seem to have it yet: pi_3O2oPGFgNLsBpw0P16dawPSC. Both are ACH

odd sparrow
#

I see in both cases the balance_transaction was not available when the PI was created.

fringe venture
#

That's right, the other one didn't have it at creation. Sorry, misunderstood what you've asked for, let me find some older PI that had balance transaction right away.

fringe venture
#

Hm, ok, looks like I've misinterpreted things. The payments that had balance transaction right away were done via legacy ACH (e.g. py_1NTHgnFgNLsBpw0PCNNoVUeo). I cannot find any payment done with ACH via payment intents that had balance transaction upon creation.
Then my question really becomes, when does balance transaction get created and is there a way to get available_on before the payment gets resolved?

odd sparrow
#

I believe the PaymentIntent needs to succeed for balance_transaction to be available.

fringe venture
#

I see.
The behavior that we currently see is the following (in a single example).
Oct 18 5:50 UTC via api we issue a payout (po_1O2SeF2H8pGAS68S8VRtSHXB) to pay out the whole available balance. The sum of the payout matches the sum of payments that have available_on equal to 2023-10-18. But only in an interval Oct 18 12:00-14:00 UTC do we receive webhook events about succeeded payment transactions and learn their available_on date is 2023-10-18.
So from the point of view of webhook events, a payment becomes available for payout before it's marked as succeeded.
I'm ok with api/webhooks working this way, just want to doouble check that I'm not missing anything

odd sparrow
#

No, it's correct. You can also rely on balance.available event to trigger your payouts.

fringe venture
#

Well, for us it's not that important when we payout. The problem we are trying to solve is doing the best attempt at reporting which payments went into which payouts.
We'll think some more what to do with what we have.
Thanks for you help!