Skip to main content

environments

divit provides a sandbox environment for testing integrations before deploying to production.

sign up a merchant account​

environmentdescriptionsign up URL
productionproduction merchant accounthttps://admin.divit.com.hk/en/signup
sandboxtest merchant accounthttps://sandbox-admin.divit.dev/en/signup

websites and API hosts​

nameusagesandbox URLproduction URL
API base URL{{API_BASE_URL}} in the documenthttps://sandbox-api.divit.devhttps://api.divit.com.hk
admin portalaccount configuration, check payment details and status, create API key, signature key etc.https://sandbox-admin.divit.devhttps://admin.divit.com.hk
pos webzero integration product for merchant to collect money instantlyhttps://sandbox-pos.divit.devhttps://pos.divit.com.hk
consumer webcustomer webhttps://sandbox-consumer.divit.devhttps://app.divit.com.hk

Postman​

you can import the API specification into Postman and switch between sandbox and production with an environment.

  1. 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.
  2. import one or both environment files:
  3. select the environment in Postman, then set apiKey to 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​

nameURLspurpose
fps payment simulatorhttps://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.