#connor11528
1 messages · Page 1 of 1 (latest)
okay how do we generate automatic payouts?
i tried the stripe cli but maybe some extra params are necessary?
stripe trigger payout.created
You just want to test automatic payouts?
But yeah just doing stripe trigger should be enough to simulate the scenario and call your webhook endpoint
okay we're getting an error calling trigger:
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_50xlpYRjnHGHf7?t=1670006677",
"type": "invalid_request_error"
}
}
yes we want to test receiving the automatic payouts webhook
Yeah you have to add your bank account if you want to test payouts
Just go to the payouts section of your dashbaord
in test mode? And do we add the bank account to the parent account or the individual connect account we're testing?
Just seeing no test payouts
You'd add it to whatever account you want to test payouts on
If you are testing connect payouts, checkout this section in our docs: https://stripe.com/docs/connect/testing#payouts
okay so we should add those bank account numbers to the stripe connect account
Correct if that's where you want to test out payouts
Then you can payout manually via the api to test
Or set up automatic payouts and just wait for the schedule to run
okay. is there a way we can mock or create a scheduled payout? I'm looking at the account I want to test and not seeing any upcoming scheduled payouts there..
sorry for my face in there lol
The only difference between an automatic payout and a manual one is that the automatic ones are just run on a schedule by us. So if you switch to manual payouts on the account and trigger one with the API: https://stripe.com/docs/api/payouts, then that should allow you to test your webhook.