how to create a function router?

Options
Hey y'all.

My payment processor is sending IPNs for any kind of transaction. Sale, subscription setup, repeat bill, etc.  Each one has its own set of functions that need to be completed.  And each IPN includes an "event" value.

Is there another way to route traffic outside of doing a string of conditionals?

The integromat equivalent would be the router with filters

Thanks!