Sandbox
The trustshare API consists of two environments, sandbox and live. Both environments are available under the same endpoint however API Keys and client secrets are prefixed with the environment name.
Our Sandbox environment endeavours to be as close to the Live environment as possible, however, there are a couple of limitations and features which should be noted.
- A Sandbox API Key will be in the format:
sandbox_api_[0-9a-z]
. - A Live API Key will be in the format:
live_api_[0-9a-z]
.
Please refrain from using fake emails in Sandbox. Due to sandbox so close in functionality to the live system, we send emails out to participants at certain points within the process.
Payment timelines
In sandbox we fake credit the project accounts for all of the available payment methods in the UI. This means that funds will eventually "settle" into the project and form part of any Settlement and Project balances.
Manual Bank Transfers will take roughly a minute to settle in sandbox. It is important to note, that when using Manual Bank Transfer, it is imperative that the user indicates the payment having been made by clicking the confirmation button ("I've made the transfer") on the last screen when in sandbox. Clicking the button ensures the account will receive the fake credit in the sandbox environment.
Manual inbound payments can only be "faked" in Sandbox when they
are less-than or equal-to 250,000.00
.
Card payments always incur lead time to settle which is inherited from the card schemes themselves. Unfortunately due to this, our card payments take a lot longer to settle in sandbox. Sanbox card payments take around 7 days to settle, however, in the live environment, it is closer to 2 days.
Testing payment methods
Sandbox offers the ability to test all the supported payment methods of the system. You can force a specific outcome to occur by using the information outlined below.
Testing with Cards
To test Card payments in the sandbox environment, you should not use real card credentials, this is a security enforcement. The following table describes card numbers which can be used to ensure a specific outcome for testing purposes.
Number | Brand | CVC | Date | Outcome |
---|---|---|---|---|
4242424242424242 | Visa | Any 3 digits | Any future date | Payment will execute successfully |
4000056655665556 | Visa (debit) | Any 3 digits | Any future date | Payment will execute successfully |
5555555555554444 | Mastercard | Any 3 digits | Any future date | Payment will execute successfully |
4000000000000002 | Visa | Any 3 digits | Any future date | Card will be declined at creation |
4000000000000341 | Visa | Any 3 digits | Any future date | Card will be declined at payment |
4000000000000069 | Visa | Any 3 digits | Any future date | Card is expired |
4000000000000127 | Visa | Any 3 digits | Any future date | Incorrect CVV provided |
Testing with Open Banking
When testing Open Banking in sandbox, we will always display a "Mock Bank" UI to accept the payment independent of the bank chosen during the process. When presented with the "Mock Bank" UI, you can provide one of the following usernames to test a specific outcome. For successful outcomes, the payment should settle almost immediately, or at least within around 5 minutes.
Username | Password | Outcome |
---|---|---|
test_executed | Any digits | Payment will execute successfully |
test_authorisation_failed | Any digits | Payment will fail authorisation |
test_execution_rejected | Any digits | Payment will be rejected upon execution |
Testing with Direct Debit
You can test SEPA Direct Debit against sandbox by scheduling Settlements. The user will be prompted to provide the source account details. Providing the following details will result in the outcome described at the point of charging, ie. the scheduled date.
Account Number | Outcome |
---|---|
DE89370400440532013000 | The payment will succeed at the scheduled date |
BE68539007547034 | The payment will failed at the scheduled date |
Testing with Trade Account credit
When testing Trade Account credit for your business buyers, they will be shown an application process for credit within the checkout UI. You can provide information about the business at the creation of the intent that will be prefilled for the application process. Providing the following company numbers will result in specific outcomes to test the flow.
Company Number | Country | Outcome |
---|---|---|
Any company number | Norway, Sweden, and United Kingdom | Trade Account credit will be approved |
08154624 | United Kingdom | Trade Account credit will be rejected |
Verifying participants
Participants receiving funds from a project account are still required to complete verification in the system. During the Verification UI-driven process, in sandbox we offer the ability to continue through the process as if it were production. Alternatively, you can click a button to automatically pass or fail the verification as you see fit.