environments
divit provides a sandbox environment for testing integrations before deploying to production.
sign up a merchant account
| environment | description | sign up URL |
|---|---|---|
| production | production merchant account | https://admin.divit.com.hk/en/signup |
| sandbox | test merchant account | https://sandbox-admin.divit.dev/en/signup |
websites and API hosts
| name | usage | sandbox URL | production URL |
|---|---|---|---|
| API base URL | {{API_BASE_URL}} in the document | https://sandbox-api.divit.dev | https://api.divit.com.hk |
| admin portal | account configuration, check payment details and status, create API key, signature key etc. | https://sandbox-admin.divit.dev | https://admin.divit.com.hk |
| pos web | zero integration product for merchant to collect money instantly | https://sandbox-pos.divit.dev | https://pos.divit.com.hk |
| consumer web | customer web | https://sandbox-consumer.divit.dev | https://app.divit.com.hk |
Postman
you can import the API specification into Postman and switch between sandbox and production with an environment.
- in Postman, choose Import and paste the specification URL:
https://developer.divit.com.hk/divit-paynow-for-developer-site.yaml. Postman creates a collection with a{{baseUrl}}variable and API-key authorisation. - import one or both environment files:
- select the environment in Postman, then set
apiKeyto the API key you created in the admin portal. use a sandbox key with the sandbox environment and a production key with the production environment.
the environment values override the collection variables of the same name. if your Postman version names the API-key variable differently, open the collection's Authorization tab and set it to {{apiKey}}.
tools for payment simulation
| name | URLs | purpose |
|---|---|---|
| fps payment simulator | https://bank.divit.dev/ | to simulate fps QR payment on the pos/consumer web |
NOTE
the availability of sandbox is not guaranteed despite its foundation in a reliable infrastructure. sandbox may be subject to upgrades prior to production.