#maueez

1 messages · Page 1 of 1 (latest)

silver zephyrBOT
plucky token
#

Hi there, you can use Stripe CLI to trigger a payout.created event. For instance
stripe trigger payout.created

formal hollow
#

it gives me this error

Trigger failed: Request failed, status=400, body={
  "error": {
    "message": "Sorry, you don't have any external accounts in that currency (usd).",
    "request_log_url": "https://dashboard.stripe.com/test/logs/req_k0NxDaO6itq7Zd?t=1667889316",
    "type": "invalid_request_error"
  }
}
#

I am not sure whether it is generating it for connected express account or for some other type

plucky token
#

OK, that means you haven't added a external_account (aka bank account) receive payout

formal hollow
#

the test bank account in added in the connected account. Where do i need to add the account?

plucky token
#

I'm not following. you said you've already add an external_account to the connected account?

formal hollow
#

Yes while setting up connected account in test mode

plucky token
#

Ah ok. you need to pass --stripe-account param in Stripe CLI if you want to simulate the events in a connected account

formal hollow
#

now it gives me this error

"error": {
    "message": "You cannot create a charge on a connected account without the `card_payments` capability enabled.",

What parameters need to be passed to create the charge on the platform account and then use transfer_data of that intent to transfer the amount to the connected account and then generate payout?

plucky token
#

Then means you need to request card_payments capability for the connected account, so that it's able to create charges.

formal hollow
#

my use case is that I create the charge on the platform account and the use transfer_data parameter of the intent to transfer the amount to destination connected account. Can it be simulated with any parameters?

plucky token
#

can you send me the full details of the error, especially the request_log_url

formal hollow
#

Here is the command that i used on CLI

stripe trigger payout.created --stripe-account acct_1LzcNW2fgeuSnPo4
plucky token
#

OK. It seems like it's parts of Stripe CLI fixtures for triggering a payout.created event. Basically Stripe CLI will perform some pre-requites (like creating charges on connected accounts so that it has enough balance for payout)

#

Instead of Stripe CLI, perhaps you can just call the payout creation API on you connected account to create payout directly.