Solaris Mock Server
A super minimal implementation of the Solaris backend.
Running with hot reloading enabled
You need two terminal sessions:
npm run build:hot(1st terminal session)
- Optionally (if you haven't built before):
npm run build:docker(2nd terminal session)
npm run start:docker(2nd terminal session)
- Enjoy. You may now access the backoffice at http://localhost:2091/__BACKOFFICE__/.
npm run start:mockredisStarts mock redis instance
npm run testRuns tests
Persons and accounts
Navigate to the URL mentioned above. From there you can send simple, random transaction(s) to your test account.
To add further persons, please have a look at the
This mock service currently supports (at different extents)
- Transfers (incl. Batch Transfers, Timed Orders and Standing Orders)
- Change Requests
- Device Binding
- Direct Debit Returns
- Customer Due Diligence
For device binding, you can use any combination as the 6-digit TAN (it is not actually verified).
Onboarding a person - Customer due diligence (CDD)
A successfully onboarded person must have "green" values for screening values. You can set screening values from the "Person data" section (More info)
When querying the balance for P-konto accounts, you will get a
seizure_protection object as stated in this API. Since solaris does not support changing an account to P-konto; we mocked the existence of seizure protection.
You can modify the values of seizure protection in this section:
You can also delete the object afterwards:
The following environment variables are supported:
SOLARIS_CLIENT_ID=... SOLARIS_CLIENT_SECRET=... SOLARIS_CARD_AUTHORIZATION_WEBHOOK_ORIGIN_VERIFICATION_SECRET=... SOLARIS_OVERDRAFT_APPLICATION_WEBHOOK_ORIGIN_VERIFICATION_SECRET=... SOLARIS_BIC=SOBKDEBBXXX MOCKSOLARIS_REDIS_PREFIX=mocksolaris MOCKSOLARIS_REDIS_SERVER=redis://:pwd@mocks-redis/ SOLARIS_KONTIST_ACCOUNT_ID=mockaccount_id SOLARIS_KONTIST_ACCOUNT_CLIENT_ID=... SOLARIS_KONTIST_ACCOUNT_CLIENT_SECRET=... SOLARIS_KONTIST_BILLING_ACCOUNT_ID=mockaccount_billing_id KONTIST_IBAN=DE01110101000000000000 KONTIST_DD_BILLING_IBAN=DE02110101000000000000 JOBS_USERNAME=jobuser JOBS_PASSWORD=jobpassword