Testing SEPA Secure deposits#
Testing SEPA Secure deposits on Demo environment#
You can test deposits in the Demo Environment.
Testing with a deposit simulation API#
The Demo Environment provides a deposit and withdrawal simulation API for simulating deposits. This API should be used as a helper during development. It allows you to quickly receive a deposit callback.
This is the prefferred testing option.
Testing the whole user flow#
This is a longer flow and should be used only if you want to test the entire user flow with manual KYC approval.
Testing flow
For a new customer:
- Create an invoice
- Go through usual flow including SumSub KYC
- Make sure to input proper KYC data, that matches the proof of address
- Use the attached passport and proof of address photos (other test or real data may also be used)
- Wait until KYC is passed
- Make a POST request to
/customer/{id}/bank-transfer/simulate- See the example cURL request
- Wait for a callback (may be delayed by a few minutes)
For an existing customer with FULL_USER status (KYC successfully completed):
- Create an invoice (optional)
- Make a POST request to /customer/{id}/bank-transfer/simulate
- See example of the cURL request
- Wait for a callback (may be delayed by a few minutes)
Example of a POST request that should be made to simulate a deposit:
This API endpoint is only available on the sandbox environment and can not be used in production.
Replace <test-customer-id> with the real value, and <your-api-key> placeholder with your demo API key to execute it
curl --location 'https://api.demo.xgateway.tech/api/v2/customer/<test-customer-id>/bank-transfer/simulate' \
--header 'Accept: application/json' \
--header 'x-api-key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"amount": "100",
"currency": "EUR"
}'
You will see the response like
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 93 100 47 100 46 1 1 0:00:47 0:00:24 0:00:23 12{"data":"Transaction simulated","success":true}
If you cannot pass KYC, check the following:
- Do not rename the files you upload.
- Do not modify their content (for example, compression via messaging apps may alter files and make them unusable for KYC needs).
- (!) Sandbox KYC flow checks file name-to-file hash matching, not the actual data content.
- Ensure that you correctly enter the name and other data exactly as shown in the documents.
Test data#
Examples of KYC data can be found on the SumSub documentation page.