#
Sandbox EnvironmentYou can use the Tuna APIs in sandbox mode, which does not affect your live data or interact with the banking networks.
The API server and keys you use for the request determines whether the request is production mode or sandbox mode. Sandbox Servers:
You can find the public keys for the sandbox environment here:
Production Keys
Your first secrets are provided when you sign up for an account: account name and app token. You can generate additional API keys and delete API keys (as you may need to rotate your keys in the future).
You authenticate to Tuna APIs by providing your account name and app token key in the request HTTP headers. Here is a sample base request:
- curl
#
Test DataSandbox Examples
Check out exemplary sandbox requests and responses for the endpoint /api/Payment/Init. You can find them on the right side of the page. They are described with the title: Dummy {CardHolderName} (Credit Card), where {CardHolderName} verifies for all possible alternatives.
See below the test data that you can use and the expected result for each of them:
Card Number | Result |
---|---|
4111111111111111 | It varies according to the card holder name |
5555555555554444 | It varies according to the card holder name |
Card Holder Name | Result |
---|---|
Authorized | Transaction Authorized |
Captured | Transaction Captured |
Not Authorized | Transaction Not Authorized |
Error | Transaction Error |
Invalid | Configuration Error |
Pending | Transaction Capture Pending |
Expired | Transaction Expired |