To support your onboarding and commissioning, Trustap provide the following tools for test transactions.
There are two environments for the Trustap API.
- A production environment for your completed production application.
- A sandbox test environment for developing your app and testing new features.
The test environment is separate from the production environment. Changes to the test environment do not affect the production environment. You do not incur charges in the test environment.
To use the test environment, make API calls using the test environment path.
https://dev.stage.trustap.com/api/v1/To use the production environment after you complete development, switch API calls to use the production environment path.
https://dev.trustap.com/api/v1/The test and production environments use different API keys. Use the keys you received from Trustap. Use your test <API_KEY> with the test environment.
To test and simulate a payment flow, use test card numbers. These card number only work in the Trustap test environment. Using a test card means no actual payment is made but the transaction is paid as if it was a real card.
Use the following card example for successful payments.
- The expiration date can be any date in the future.
- The card holder name

To test different scenarios including different card types or declined payments, a range of different test cards are available to use.
Use our test buyer ID to test a bank transfer. This buyer has pre-loaded funds available to pay for a bank transfer.
1-be75312f-ef39-4f06-b4c7-d903e96800c3Use this ID as the buyer_id instead of creating a new buyer during testing. Use this in the following flows. Complete each step in the process.
To simulate a payment using the Trustap bank transfer test buyer ID, you must trigger a payment for the transaction by calling the show bank details endpoint or displaying the payment page. You do not make a payment but calling these resources triggers a simulated payment and moves the transaction to the next step.
- Trigger bank transfer payment online transaction
- Trigger bank transfer payment face-to-face transaction
Modify your flow to use your own buyer_id after you finish testing.
When you use the Trustap bank transfer test buyer ID, the system makes the payment instantly. In the production environment, the buyer must to go to their bank and transfer the funds. Trustap then sends a webhook to let you know when funds have been lodged.