#AndreaDaliS1 - Webhook

1 messages · Page 1 of 1 (latest)

rancid trail
silent kettle
#

but the object of the event is balance, that not have any reference to a payment_intent, charge or transaction. Right?

#

I need to know if ABC payment arrives on balance to make payout.

rancid trail
#

Okay, in that case you can listen for charge.succeeded, which will have include Charge object

silent kettle
#

So you can confirm that charge.succeeded notify me if a charge became "Available for payment" ?

#

because I need to know if go under Available for payment, not Available soon.

austere scaffold
#

If you need to know specifically when the charge becomes "Available for payment" then charge.succeeded is not what you want - balance.available is the only event that would notify you when the funds become available. Is there a reason you need to know about the specific payments that are available to make a payout?

silent kettle
#

yes, because I have this situation

#

customer A pays 100dollars. Connect account received 90 dollars net

#

after a week the account connect receive 90 dollard by payout

#

the balance is 0

#

after two days, customer wants to refund 100 dollars

#

so I create a "recharge payment", paid by che propertary of account connect

#

so himself recharge our account connect

#

, when this payment is completely and balance has 90 dollars, i refund the original payment

#

so i need to know if the "recharge payment " is on balance defintely and not "soon"

#

to automatically make refund

austere scaffold
silent kettle
#

the reason is that there's a situation when a payout transform my balance ao 0

#

*at

#

so account connect doesn' have balance to reverse anything

#

and I don't want to go negative on connect account balance

austere scaffold
#

Yes, the connected account balance will go negative, but creating a completely new "recharge payment" isn't what you should be doing.

silent kettle
#

uhm.....interesting

#

i'll take a minute after dinner (i'm from Italy).

#

Thanks for the moment!