New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Platform listener always receives both direct events and connect account events in webhook #1127
Comments
@nerder could you please list out the CLI commands you used to create those endpoints? |
I'm using the docker containers, so in my docker compose I have this: stripe-cli-connected:
image: stripe/stripe-cli:latest
container_name: stripe-cli-connected
command: >
listen
--device-name ${DEVICE_NAME}-connected
--events=customer.created,customer.deleted,customer.updated,customer.subscription.created,customer.subscription.updated,customer.subscription.deleted,payment_method.attached,payment_method.detached,invoice.paid
--forward-connect-to http://localshost:5001/connected/stripe-connected
environment:
- STRIPE_API_KEY
- DEVICE_NAME
stripe-cli-platform:
image: stripe/stripe-cli:latest
container_name: stripe-cli-platform
command: >
listen
--device-name ${DEVICE_NAME}-platform
--events=customer.created,customer.deleted,customer.updated,payment_method.attached,payment_method.updated,payment_method.detached
--forward-to http://localshost:5001/platform/stripe-platform
environment:
- STRIPE_API_KEY
- DEVICE_NAME |
@nerder I recommend setting
When
However, this doesn't support specifying different event types or device name for each kind of endpoint, which is why I recommend using a dummy endpoint. Let me know if this helps. |
Issue
From my testing it seems like that when an event is triggered from the connected account, and a listener for a platform is present, that listener will be invoked as well.
Expected Behavior
Only the connected webhook listener is to be called, as in the actual live environment.
Steps to reproduce
Traceback
Share any debug output that was given by the CLI
Environment
macOS
stripe-cli: latest
The text was updated successfully, but these errors were encountered: