Test a workflow that would never happen within ms of each other. For example, charge.dispute.created causes race conditions because the charge.succeed event is still being processed when the charge.dispute.created event is delivered and started to be processed.
There are other events that have this issue.
Feature
The ability to have a flag or config that allows for defining of a delay in delivery of the webhook to the endpoint when using the listen command
Examples
stripe listen --skip-verify --forward-to localhost/webhook --delay 1 would add a delay of 1 second from the cli receiving the webhook to delivering it to the endpoint.
Problem
Test a workflow that would never happen within ms of each other. For example,
charge.dispute.created
causes race conditions because thecharge.succeed
event is still being processed when thecharge.dispute.created
event is delivered and started to be processed.There are other events that have this issue.
Feature
The ability to have a flag or config that allows for defining of a delay in delivery of the webhook to the endpoint when using the listen command
Examples
stripe listen --skip-verify --forward-to localhost/webhook --delay 1
would add a delay of 1 second from the cli receiving the webhook to delivering it to the endpoint.