#Rayon - Payouts

1 messages · Page 1 of 1 (latest)

slim fern
#

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

formal robin
#

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

slim fern
#

For the second Q: that depends on what type of account it is and whether they have access to their own Stripe dashboard.

formal robin
#

for second q: Is there any API endpoints that can do that without dashboard ?

slim fern
formal robin
#

I guess to do this , we need to turn off automatic payout after transfer right ?

#

Is this ok to do ?

slim fern
#

You, as the platform, can toggle the connected account between manual and automatic payouts depending on what best fits your use cases.

formal robin
#

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 ?

slim fern
#

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

formal robin
#

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

slim fern
#

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.

formal robin
#

this is what I don't understand , shouldn't the payout be automatically doneand the balance be zero ?

#

why is pending in negative though

slim fern
#

Did you create a $400 payout?

formal robin
#

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 ?

slim fern
#

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.

formal robin
#

so in this case , for my total $538 , $400 is payout and then $138 is left which I can again payout . Right ?

slim fern
#

Yup

formal robin
#

Is the $400 already done or is being done in this case ?

#

$400 payout

slim fern
#

When the pending hash is empty, that's when you know the funds movement is complete

formal robin
#

by pending hash you mean the pending pending key value ?

slim fern
#

Right, the Balance object should return with pending: [] when all pending transactions are complete

formal robin
#

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

slim fern
#

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

formal robin
#

thanks . I guess even in test mode payout takes some time