#AndreaDaliS1 - Webhook
1 messages · Page 1 of 1 (latest)
You could listen for the balance.available event for the connected account: https://stripe.com/docs/api/events/types#event_types-balance.available
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.
Okay, in that case you can listen for charge.succeeded, which will have include Charge object
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.
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?
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
Is there a reason you're creating a "recharge payment" and not just creating a refund with reverse_transfer: true? (see https://stripe.com/docs/connect/destination-charges#issuing-refunds)\
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
Yes, the connected account balance will go negative, but creating a completely new "recharge payment" isn't what you should be doing.
If you're connect account is in certain countries you can even have Stripe automatically debit the connect account's external account to cover the negative balance (see https://stripe.com/docs/connect/best-practices#negative-balances-on-accounts)