#Serdar
1 messages ยท Page 1 of 1 (latest)
We want to implement webhooks for payouts
And somehow we need to test it ๐
Is there a way?
You can use the Stripe CLI to trigger events, including payout.created
https://stripe.com/docs/cli/trigger
Happy to help ๐
One more question
The stripe payout events will be thrown for custom accounts
How can i find out, to which custom account the payout.created event belongs?
Assuming you have a Connect webhook endpoind, the event payload will contain the account ID: https://stripe.com/docs/api/events/object#event_object-account
Yes .. but before you told me to trigger the event over the cli
is there are possiblity i can tell the cli
to add those informations? ๐
Can you try setting --stripe-account? https://stripe.com/docs/cli/trigger#trigger-stripe_account
yes i try
Did it work?
Give me a few minutes to try this on my end. Also can you share your own account ID?
Ok, thank you
yes wait
Where can i see our plattform account id?
acct_1LfLOkD1fTq5Z6Hu
found it
and the stripe connect account i try to use is:
acct_1MgoByRgxyi8PVHS
so we want to react for payouts of the custom connect accounts
so we can generate invoices
๐
For me it worked:
- Use the CLI with the platform account
- Find the account ID of one of your connected accounts
- Then run
stripe trigger xxx --stripe-account acct_xxx
Based on the error you shared, are you sure that the CLI is linked to your platform account?
Ok that did not work
yes one moment
stripe trigger payout.created --stripe-account acct_1MgoByRgxyi8PVHS
And the stripe account has balance of 9000โฌ
hm
curious
Give me a few minutes to look into this.