There are some pre-requisites you need to do before integrating with Midtrans:
Please register to Midtrans by completing your information here. You will then be given access to your Merchant Administration Portal (MAP), where you shall have access to both sandbox and production environment. You can use the sandbox environment during your development phase of integrating Midtrans’ payments system. You can also test dummy transactions on sandbox environment. The production environment is also available, but your production credentials will only be ready once you have completed all the necessary administrative steps.
You can toggle between sandbox and production environment from the button on the top left of your MAP. The light and dark shade of blue indicate production and sandbox mode respectively.
Please complete the required information in the General Settings menu Settings > General Settings.
- Please do not use any symbols in Merchant Name.
- Please use less than 25 characters for Merchant URL.
Access Keys are used to access Midtrans’ API. You can find them in Settings > Access Keys.
The Access Keys are unique for every merchant. Please always keep it confidential.
Redirection URL is used to redirect your customer after the payment process through Midtrans is completed. Please refer to the diagram below on how redirection URLs are being handled.
To set your redirection URL if you are using pop-up mode, please go to Settings > Snap Preference > System Settings.
To set your redirection URL if you are using redirect mode, please go to Settings > Configuration.
Do not forget to use http:// or https:// when you fill in your redirection URL.