I'm using the PHP Paypal merchant SDK.
Up to this point I have used the setting in the config file to set the endpoint. I'd like to be able dynamically change the end point in my code, so that when i'm running in development mode it will use the sandbox address, and when i'm running live mode it will use the product address.
How can i do this?