Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

[Feature Request]: Trigger webhook events #10

Open
adamlacombe opened this issue Nov 27, 2020 · 1 comment
Open

[Feature Request]: Trigger webhook events #10

adamlacombe opened this issue Nov 27, 2020 · 1 comment

Comments

@adamlacombe
Copy link

Looking for routes to trigger a webhook event request for e2e testing.
To keep it simple the webhook endpoint could be provided using process.env["WEBHOOK_ENDPOINT"]

Example: api/customers.ts - create would trigger webhook event customer.created

I would be willing to submit a PR if this sounds like something you would like to include.

@pushplay
Copy link
Owner

Hi. Yup that makes sense to me. A PR would be very welcome.

If you can also support the retrieve event endpoint that would be great. Stripe often recommends people use that endpoint to protect against replay attacks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants