#Rayon - Payouts
1 messages · Page 1 of 1 (latest)
Hi 👋
So How can I show or know that my payout is being done in test mode or in live mode
If the API requests are made with Test mode API keys then everything related to them will be in Test mode.
If I want seller to click withdraw it my account
Can you explain what you mean here? This isn't clear to me
okay . I will start from first question . Say a seller gets transferred money by platform admin using stripe.Transfer.create(...) and seller gets increased balance in their connected stripe account .
It seems the payout is done automatically so what I wanted in the first question was to know how would the seller know that the payout process is being done ?
and for second question , say seller has $600 dollar in their connected stripe account ? How can the seller withdraw them to their bank account manually without platform intervention . As once seller gets the money , he can do whatever he wants in it
First Q: The seller would create Connect webhook endpoint and listener and then listen for the payout.created event.
https://stripe.com/docs/connect/webhooks - Connect Webhooks
https://stripe.com/docs/api/events/types#event_types-payout.created - event type
For the second Q: that depends on what type of account it is and whether they have access to their own Stripe dashboard.
for second q: Is there any API endpoints that can do that without dashboard ?
Yup. An account can use the API to create a Payout manually.
https://stripe.com/docs/api/payouts/create
I guess to do this , we need to turn off automatic payout after transfer right ?
Is this ok to do ?
You, as the platform, can toggle the connected account between manual and automatic payouts depending on what best fits your use cases.
My case is like this . Customer creates a job and seller works on it . Customer pays to the platform first and after work is done , platform takes some cut and release the money to seller .
So in this case , should the release be done to seller using transfer api or payout api ? and to their stripe account or bank account ?
The payout API only transfers money from the Accounts Stripe balance to their external bank account. You would need to use both. First the Transfers API to move funds from your Stripe account to theirs, then the Payouts API to move funds from their Stripe account to their bank account
And other thing , I don't see the balance being decreased after the payout is done in test mode
When I look at the balance ,object I get
{
"available": [
{
"amount": 53800,
"currency": "usd",
"source_types": {
"card": 53800
}
}
],
"instant_available": [
{
"amount": 13800,
"currency": "usd",
"source_types": {
"card": 13800
}
}
],
"livemode": false,
"object": "balance",
"pending": [
{
"amount": -40000,
"currency": "usd",
"source_types": {
"card": -40000
}
}
]
}
what's the diff between available , instanct_available and pending here
Instant available is what you can withdraw immediately. Available is what you can move through your Stripe Accounts and pending means those transactions have not settled yet.
this is what I don't understand , shouldn't the payout be automatically doneand the balance be zero ?
why is pending in negative though
Did you create a $400 payout?
yes
So When a payout is confirmed (in real case ,that would be $400 transferred in my bank right?) , the balance from my stripe will be in negative ?
Well in this case the pending balance shows the amount being debited from your account. The instant_available shows what will be remaining after the the payout completes.
so in this case , for my total $538 , $400 is payout and then $138 is left which I can again payout . Right ?
Yup
When the pending hash is empty, that's when you know the funds movement is complete
by pending hash you mean the pending pending key value ?
Right, the Balance object should return with pending: [] when all pending transactions are complete
Once I do all of these , just changing the test keys to live keys would be enough for production ? I mean by adding real bank account and activating stuff
Yes there will be additional activation steps for your account that the Dashboard should notify you of (e.g. setting up a real bank account) but as for your code you will just change the API keys
thanks . I guess even in test mode payout takes some time