#maueez
1 messages · Page 1 of 1 (latest)
Hi there, you can use Stripe CLI to trigger a payout.created event. For instance
stripe trigger payout.created
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
OK, that means you haven't added a external_account (aka bank account) receive payout
the test bank account in added in the connected account. Where do i need to add the account?
I'm not following. you said you've already add an external_account to the connected account?
Yes while setting up connected account in test mode
Ah ok. you need to pass --stripe-account param in Stripe CLI if you want to simulate the events in a connected account
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?
Then means you need to request card_payments capability for the connected account, so that it's able to create charges.
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?
can you send me the full details of the error, especially the request_log_url
here is the request_log_url
https://dashboard.stripe.com/acct_1LzcNW2fgeuSnPo4/test/logs/req_SHw0NSpF0Ri7BZ?t=1667890390
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Here is the command that i used on CLI
stripe trigger payout.created --stripe-account acct_1LzcNW2fgeuSnPo4
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.