#Twisted - Payouts

1 messages · Page 1 of 1 (latest)

lapis pier
#

Hi 👋

#

So you are calling the trigger event and it returns with insufficient balance?

zinc storm
#

Sorry actually it is the stripe trigger payout.updated

#

and it returns:

Trigger failed: Request failed, status=400, body={
  "error": {
    "code": "balance_insufficient",
    "doc_url": "https://stripe.com/docs/error-codes/balance-insufficient",
    "message": "You have insufficient funds in your Stripe account for this transfer. Your card balance is too low.  You can use the /v1/balance endpoint to view your Stripe balance (for more details, see stripe.com/docs/api#balance).",
    "type": "invalid_request_error"
  }
}
#

Naively I just expected this to not really take the balance into account since I was using the test key, so I am guessing that I have to try and update the balance to bring it inline with some threshold there is for a payout?

lapis pier
#

Yeah I would just bump the balance amount using the Balance API

zinc storm
#

Awesome!!!! Appreciate the help!

lapis pier
zinc storm
#

I tried that but said it is only available for connect accounts?

#

So now i am trying the charges api stripe charges create --amount=100 --currency=usd --source=tok_amex --description="Test charge"

lapis pier
#

You can also achieve this through the dashboard

#

Okay, if you want to do more complicated testing using the CLI you can also build your own fixtures, which define a set of steps to be taken with the stripe APIs.