Adding the sandbox script will automatically integrate with our sandbox services for testing. Importing the production script will result in real transactions.
US Sandbox (Test):
CA Sandbox (Test):
An even easier method to switch environments is to use functionality within our scripts! If you use the production script, you can change the environment by calling
To call our sandbox environment, you would pass sandbox as the name like
virtualCheckout.updateEnvironment('sandbox') before launching the Zip virtual checkout.
The script can be loaded by adding a tag like
The script can be added anywhere in the body or head and can be loaded asynchronously. If loaded asynchronously, be sure to wait for its load to complete before invoking any operations against the library.
Working through some integration issues with the Zip team? If you add debug=true to your non-production script, you'll be able to enable some logging for the quadpay.js library that will log messages to your console to help address any issues.
Updated about 1 year ago