-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use shipping example in sandbox mode? #127
Comments
https://onlinetools.ups.com/ups.app/xml/ShipConfirm is this url for production mode or test mode? |
Every class allows you to set a $useIntegration flag false/true on creating an object of it. You will find it if you take a look at the Shipping class constructor. Keep it at false and you will hit the integration server of UPS, setting it to true will connect to the production environment. The URL above is the production environment. |
The other way around, isnt it?
|
Hello - I am doing essentially exactly what is described here, and yet I seem to be getting responses from the production environment. I can't see why that would be. Any suggestions would be much appreciated! |
I'm still not sure why, but this does not work (I get the production URL): $useIntegration = true; If however I add: if($useIntegration){ Then I am able to get the sandbox URL. Perhaps this will help someone else. And perhaps someone can explain why the first case doesn't work. |
How to use shipping example in sandbox mode?
The text was updated successfully, but these errors were encountered: