How to validate user input in plugin configuration

for a payment handler we are using some parameters that should be entered by an admin user when installing the plugin. How can the submitted parameter values be checked to be valid (f. i. via an API to another application)?