We have a managed package. In the managed package, we have a button in the application. When the user clicks on the button, we want the customer's specific logic to be executed (which could potentially be written in an apex class). The apex class could return us to a true/false value and based on that we can make further decisions on what would happened in the managed package.
Can this be achieved in salesforce? What is the best way to implement this functionality? Can we ship an interface that customer can implement which will be callable from the button.