0

We would like to detect if the code is running in sandbox as we need to communicate back to the server which urls to hit.

I can hard code a flag into each build if we are going to upload the build against sandbox. But I was wondering if there was a way to do it in code? That way I don't have to build a separate sandbox build instead I can just upload the same file that I use in non-sandbox.

Thanks!

asked 2016-04-26 23:49:25 -0500

gleebuyfi gravatar image

1 answer

Sort by  
0

You could use CloverAuth.authenticate to get the base URL. It should be https://apisandbox.dev.clover.com if you're running on the sandbox.

answered 2016-04-27 11:03:21 -0500

Jim Patel gravatar image