#nkusibojoski - balance transfer

1 messages · Page 1 of 1 (latest)

modern kestrel
#

Hi there
Happy to help

serene tiger
#

Hello 👋

modern kestrel
#

nkusibojoski - balance †ransfer

#

once you created the charge (10$), you should receive an event mentioning the success of the charge
https://stripe.com/docs/api/events/types#event_types-charge.succeeded
You create directly the transfer to your connected account (8$)
If you have sufficient balance, the transfer will be done directly
If you don't have, the transfer will be delayed couples of days until you'll have

#

nkusibojoski - balance transfer

serene tiger
#

But this is not the scenario that I want 😦
So how can I know that the charge of 10$ are available to my balance, so then I can create transfer?

plucky vortex
#

you 'd use the Balance Retrieve API to check your balance periodically and see what you have

#

there's also a balance.available webhook event

serene tiger
#

is there an API to check status of payment_intent or charge ?

#

When balance.available is triggered ?

plucky vortex
#

as far as I know though that event is not always reliable and has some ehdge cases. If it were me I wouldn't do what you're doing, I'd do what soma said

#

like you simply transfer the funds to the connected account, they are paid out when they're available. Why do you want to complicate it by manually waiting for the balance to be available, it's the same thing, just slower

#

but if you do want this, I'd recommend setting up a cron job to check your Stripe balance once a day and seeing what transfers you can make. Note also you must set your platform account to use manual payouts so you accumulate a balance