I'm working with stripe connect, creating separate charges and transfers for my business. I'm trying to write code to notify my support team of the event when a transfer fails, so that they can intervene. My problem is that I can't get any transfers to fail in the test environment. Creating a transfer for more money than is in my test account doesn't trigger the transfer.failed webhook, it just returns an error. In the dashboard > developers > webhooks, there is the feature to send a test webhook of any type to a webhook endpoint, but I'm using the stripe cli on my computer.
What are the different events that can trigger a transfer.failed webhook?
You could test using an external bank account that refuses payment - the response should not be instant, but delayed a bit
ex: DE89370400440532013002 Payout fails with an account_closed code. (remember to change DE from the iban to wherever you are)
Another way could be to create a stripe account that is not verified and try to make a large transfer to it. (like >5000$ in test mode)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With