Credentials and endpoints
Test keys, access tokens, account identifiers, and API endpoints identify the sandbox. They should be stored and deployed separately from live credentials so a test build cannot accidentally call production.
Payment integration testing
A sandbox payment environment is a provider-controlled test space that lets a business simulate payment activity without sending real transactions through live payment networks. It uses test credentials, test accounts, test payment values, and simulated records that are separate from production activity. The exact tools, supported features, and limitations depend on the provider.
A payment sandbox gives developers and operations teams a safer place to build and check an integration before it handles real payments. A team can use it to submit simulated transactions, inspect responses, trigger supported events, and confirm that its application changes order or payment states as expected. No real cardholder should be charged, and sandbox records should not be treated as live financial records.
The separation matters. Providers typically issue environment-specific credentials and keep test objects apart from live objects. A sandbox access token or test API key is intended for the test environment, while live credentials are reserved for production. Switching an application from testing to production therefore requires deliberate configuration, credential management, and another round of launch checks.
Test keys, access tokens, account identifiers, and API endpoints identify the sandbox. They should be stored and deployed separately from live credentials so a test build cannot accidentally call production.
Test sellers, buyers, customers, payments, refunds, and other supported objects exist only inside the provider's testing environment. The available object types vary by platform.
Provider-supplied test values can simulate supported outcomes such as a successful payment, a decline, or an event notification. Teams should use only the scenarios documented for their provider.
A useful sandbox plan follows the entire payment workflow, not just the first successful response. Start with the customer action, follow the resulting status through the application, and confirm what staff and customers see. Include the ordinary path and the failure paths that the provider can simulate.
For more context on the surrounding workflow, review how online credit card payments work and what a payment webhook is.
A sandbox is a simulation, so passing sandbox tests does not guarantee that every production condition will behave identically. Provider documentation may list unavailable products, dashboard features, hardware behavior, regional behavior, communications, or other limitations. A test environment also cannot reproduce every live network delay, issuer decision, customer device, browser condition, or operational mistake.
Treat sandbox approval as one checkpoint in a broader release process. Confirm the provider's current production requirements, verify environment settings, test the public experience on representative devices, monitor the first live transactions through approved business procedures, and keep a rollback or disablement plan. Do not run a real card number merely to see whether a sandbox accepts it; use only provider-supplied test values in the test environment.
A test environment should use fictitious identities and the provider's documented test payment values. Do not enter real cardholder data, bank credentials, passwords, complete account numbers, secret API keys, or unnecessary personal information. Logs, screenshots, support tickets, and shared test cases should also avoid sensitive information.
Restrict access to sandbox dashboards and credentials, rotate or revoke test credentials when team access changes, and keep secrets out of source control and general collaboration tools. A sandbox reduces the risk of touching live payments, but it is not a reason to relax the business's access, privacy, and change-management practices.
Confirm that the environment supports the payment methods, account model, event types, and application features that the planned integration actually uses. A provider may simulate some features but omit others.
Identify the distinct endpoints, credentials, objects, user permissions, and deployment settings. The team should know exactly what changes at launch.
Use the provider's current test values and documented scenarios. Do not assume that an invented test value will produce a meaningful or stable result.
Record the test case, expected result, actual result, date, environment, and reviewer without copying secrets or sensitive personal data into the record.
Explore the ecommerce and online payments FAQ for related workflow questions.
Learn what hosted payment fields are and where they fit in checkout.
Compare the concept with a hosted payment page.
Before connecting a payment workflow to production, inventory the provider's supported sandbox features, separate test and live configuration, and write a small set of repeatable end-to-end cases. If a feature is not documented for the sandbox, ask the provider how it should be validated rather than assuming the simulation matches live behavior.
To learn more about how TSYS can help improve the way your organization accepts payments, markets to new customers, or manages its HR responsibilities, get in touch by calling 585-981-8463 to get started.
CONTACT US