Connect Midtrans to AXL to accept payments for your products and services. This guide explains how to select the Midtrans environment, find its Client Key and Server Key, and enter them in an AXL payment gateway.
Create a Midtrans Account
To get started, create a Midtrans account. Go to the official Midtrans website and register.
Follow the on-screen instructions to complete registration.
Sign in to the Midtrans Merchant Administration Portal (MAP). Select the Sandbox or Production environment you intend to connect, then open Settings → Access Keys. Midtrans gives each environment a different Client Key and Server Key. See the official account and access-key guide.

Copy the Client Key and Server Key from the same merchant and environment. Enter them into the matching AXL fields. Keep the Server Key confidential.
Connect Midtrans to AXL
Next, connect Midtrans to AXL. To let your customers pay for your products and services, you need to add the payment gateway to your account.
In AXL, go to Settings → Payment Gateways and click "Add Payment Gateway". If you haven't added a gateway yet, the page shows the list of gateways right away.
If Midtrans is not visible in the provider list, click More to reveal the additional gateways.

Click "More" if you don't see Midtrans, then select "Midtrans". In the panel that opens, fill in the fields:
- Title: Enter a name for this payment gateway.
Description: Add a description of this payment method. Customers will see it on your website.
Payment Button Text: Enter the text for the payment button on your website.
Show on Website: Select this checkbox to make this payment method available on your website.
Currency: Select the currency you plan to accept payments in. If you sell in several markets, you can set a different currency for each payment gateway. For example, you can sell courses in US dollars through one gateway and accept a different currency through another. Choose one of the currencies supported by this gateway; the form shows the available options.
Client Key: Enter the Client Key obtained using the Midtrans credential instructions above.
Server Key: Enter the Server Key you copied from the Midtrans website.
Test Mode: Select this checkbox when using the Sandbox Client Key and Server Key. For live payments, use the Production keys and clear Test Mode after completing Midtrans activation. Changing the checkbox does not convert a Sandbox key into a Production key.

When you've filled in the form, click "Create". Midtrans now appears in your list of payment gateways.