Allow users to test a plugin in sandbox and Production mode

Hello, I am building a plugin and wanted to check if there was a way to achieve the below:

The service that I am building a plugin for has api end points for sandbox and production (i.e [sandbox] and [production]).

I want to create a mechanism in my plugin that will allow the user to provide the endpoint they wish to ping (sandbox or production), and successfully retrieve/post the required data.

My initial thought was to create 2 separate plugins, one for sandbox (with all sandbox end points) and other for production (with all production end points). Thoughts?

Appreciate the help in advance.