Note: for test transactions, you must have a sandbox API Key.
The url for the RESTful interface is
https://api.thesecuregateway.com/rest/v1 (Note that this is the base URL. Append
/transactions to the URL for running transactions,
/batches to access Batch information, etc.)
Configure the code sample or shopping cart plugin using your new API key. Point the code sample or shopping cart plugin to
https://api.thesecuregateway.com/rest/v1/transactions and run a transaction.
Warning All transactions sent to
https://api.thesecuregateway.com are live. For sandbox transactions, use the sandbox API key and URL listed below.
You can try out the API immediately using
https://sandbox.thesecuregateway.com/rest/v1/transactions and a sandbox API key. Read more about Sandbox Mode here.
Sandbox API Key:
Warning These API keys are public, so live cards and sensitive data should never be used.
All code samples are open source and available on The Secure Gateway's github page.
You can chat with TSG employees or other developers on our developer forums. You can ask questions and report bugs there.