Connect Midtrans to WhatsApp, Instagram, TikTok and AI Chat

By Alva Chew 12 min read Updated November 8, 2026

Yes. AeroChat works directly with Midtrans. It creates Midtrans payment links for the amount agreed in the conversation and checks whether they were paid, through Midtrans’s API, on WhatsApp, Instagram, web chat and every other channel your customers use.

Customers message you on WhatsApp, Instagram, Messenger, TikTok, Telegram, web chat or email, and once they decide, they want to pay right there. If you take payments with Midtrans, AeroChat sends a Midtrans payment link in the same chat and answers “did my payment go through?” from the payment notification Midtrans sends when the link is paid. It connects through Midtrans’s public API. Customers pay on Midtrans’s own payment page, by card, bank transfer, GoPay, QRIS or any method you have switched on, so AeroChat never sees card details and never holds money. The funds settle into your own Midtrans account. You describe the workflow in your own words, AeroChat builds it, and Midtrans stays the place your team checks.

What you can do with Midtrans and AeroChat

  • Send Midtrans payment links in chat. When a customer confirms an order, a booking or a fee, AeroChat creates a Midtrans link for the exact amount, with the items listed, and sends it.
  • Answer “did my payment go through?”. AeroChat confirms the payment from the notification Midtrans sends to AeroChat, checks that transaction in Midtrans and tells the customer whether it is settled or still pending.
  • Offer only the payment methods you want. AeroChat can limit a link to the methods that fit the order, for example bank transfer and QRIS for a large B2B order.
  • Take a deposit before you confirm. AeroChat sends a Midtrans link for the deposit and confirms the booking once Midtrans shows the payment as settled.
  • Cancel an unpaid transaction. If a customer changes their mind while a bank transfer or QRIS payment they started is still pending, AeroChat cancels that transaction in Midtrans so it can no longer be paid.
  • Answer refund questions. When a customer asks about a refund your team issued, AeroChat checks the paid transaction in Midtrans and tells them whether it shows a full or partial refund. New refund requests go to your team.
  • Check or stop a subscription. AeroChat reads a customer’s Midtrans subscription, tells them the amount and the next charge date, and disables it if they ask and your rules allow.

Prefer payments built in? Airwallex is built into AeroChat, so payment links work without an API setup. See how it works. No Airwallex account yet? Open one through AeroChat.

What it looks like on WhatsApp

Customer: Saya mau pesan 2 kotak kue lapis legit untuk Sabtu. Bayarnya bagaimana? (example)

AeroChat: Baik. 2 kotak lapis legit, total Rp 640.000, siap diambil Sabtu. Ini link pembayaran Midtrans: https://app.midtrans.com/payment-links/lapis-7731 (example). Bisa bayar dengan GoPay, QRIS, transfer bank atau kartu. Link berlaku 24 jam.

In Midtrans: a payment link for IDR 640,000 is created with order ID LL-7731 (example), the two items listed and a 24-hour expiry.

Customer: I’ve paid with GoPay. Did it go through? (example)

AeroChat: Yes. Your payment of IDR 640,000 is settled. Your order is confirmed for pickup on Saturday from 10am.

In Midtrans: nothing changes. Midtrans had already notified AeroChat that the payment for this link was settled, and AeroChat checked that transaction.

Customer: Sorry, I don’t need the bank transfer anymore, I’ll pay at the shop. (example)

AeroChat: No problem. I’ve cancelled the pending bank transfer, so the account number won’t accept payment. See you at the shop.

In Midtrans: the pending transaction is cancelled.

Works on every chat channel

Your customers message you wherever they already are. The same Midtrans connection and the same workflows run on every channel AeroChat supports, and Midtrans stays the record whichever one they use.

Channel What your customers can do
WhatsApp Message your WhatsApp Business number to get a Midtrans payment link for an order, booking or fee, or ask whether a payment went through. Voice notes are transcribed, so a spoken request works too.
Instagram Send the same requests by direct message. A comment on your post can get an automatic reply that moves the conversation to a DM.
Facebook Messenger Send the same requests to your Facebook Page. Comments on your Page posts can get an automatic reply too.
TikTok Send the same requests by TikTok direct message or TikTok Shop buyer chat. Both arrive in the same TikTok inbox.
Telegram Send the same requests to your business on Telegram.
Web chat Do the same from the chat on your website, without leaving the page.
Email Write to your Gmail or Office 365 address and get the same answer the chat gives.

How the connection works

AeroChat connects through Midtrans’s public API, documented at docs.midtrans.com. Through it, AeroChat creates payment links, receives the payment notifications Midtrans sends, checks the status of a notified transaction, cancels pending transactions, and reads or disables subscriptions. AeroChat keeps a record of which link it sent in which conversation, so it can match each notification to the right customer. Each workflow uses only what its recipe asks for.

  • What AeroChat reads from Midtrans: payment notifications, transaction status, amount and payment method, refund details on a transaction, and subscriptions with their amount, status and next charge date.
  • What AeroChat writes to Midtrans: new payment links with amount, items, expiry and allowed payment methods, cancellations of pending transactions, and disabled subscriptions.

To connect, log in to your Midtrans Dashboard, open Settings, then Access Keys, and copy the Server Key from the Payment tab. Midtrans has a Sandbox environment and a Production environment, each with its own keys. Start with the Sandbox key, then switch to the Production key once you have tried the workflow. Midtrans sends a payment notification to the notification URL you set in the dashboard. Point that URL at the address AeroChat gives you, because the payment workflows confirm payments from these notifications.

You describe the workflow in your own words, for example “when a customer confirms an order, send a Midtrans link for the total and confirm the order once it is paid”. AeroChat builds the workflow as a draft and asks for the Midtrans Server Key by name. You enter it in the AeroChat dashboard. It never passes through the conversation.

Payments settle into your own Midtrans account under your Midtrans terms. AeroChat does not process or hold any money.

Workflows to copy

Seven ready-made workflows for Midtrans. Copy one into AeroChat, add your Midtrans Server Key, and it runs on every channel.

1. Send a Midtrans payment link

Copy this into AeroChat

When a customer confirms an order, read back the items and the total and ask them to confirm. Create a Midtrans payment link for the total with the order number as the order ID, each item with its price and quantity, a usage limit of one payment and an expiry of 24 hours (example). Send the link in the chat with the total and the expiry. When Midtrans’s payment notification for this link shows the payment as settled, confirm the order in the chat. Never ask for card details in the chat. Reply in the customer’s language.

2. Answer “did my payment go through?”

Copy this into AeroChat

When a customer asks whether their payment went through, find the link we sent in this conversation and check whether Midtrans has sent a payment notification for it. If the notification shows the payment as settled, check that transaction in Midtrans, tell them the amount and confirm their order. If the notification shows it as pending, remind them how to finish paying. If there is no notification yet, tell them we have not received the payment, and send the link again if it has not expired, or a new link for the same amount if it has. If you cannot find the link, hand over to a team member.

3. Offer only the payment methods you want

Copy this into AeroChat

When a business customer confirms an order above IDR 20,000,000 (example), create the Midtrans payment link with only bank transfer and QRIS switched on. For all other orders, leave every method we have activated switched on. Tell the customer which methods the link accepts when you send it.

4. Take a deposit before confirming a booking

Copy this into AeroChat

When a customer books a service that needs a deposit, tell them the deposit amount first, for example IDR 200,000 (example). Hold the time they chose and send a Midtrans payment link for the deposit with the booking number as the order ID and a 30-minute expiry (example). Confirm the booking only once Midtrans’s payment notification shows the deposit as settled, and say the deposit comes off the final bill. If it expires unpaid, tell them the time has been released and offer a new link.

5. Cancel an unpaid transaction

Copy this into AeroChat

When a customer says they no longer want to pay a bank transfer, QRIS or convenience store payment they started, find the transaction from the payment notification Midtrans sent for our link and check its status. If it is still pending, cancel it in Midtrans and confirm that it can no longer be paid. If it is already settled, do not cancel it. Tell them the payment was received and hand the conversation to a team member.

6. Answer refund questions

Copy this into AeroChat

When a customer asks about a refund, find the paid transaction from the payment notification Midtrans sent for our link, or ask for their order number and hand over if you cannot find it. Check the status of that transaction in Midtrans. If it shows a refund or a partial refund, tell them the amount refunded and how long it usually takes to reach them from our knowledge base. If there is no refund and they want one, do not promise anything. Collect the order number, the amount and the reason, and hand the conversation to a team member.

7. Check or stop a subscription

Copy this into AeroChat

When a subscriber asks about their plan, find their subscription ID in our records and read the subscription in Midtrans. Tell them the amount, whether it is active and the next charge date. If they ask to stop it, check our policy in the knowledge base, confirm with them once, then disable the subscription in Midtrans so no future charges are made, and confirm it is done.

Who uses it

Online stores, food businesses, clinics and service businesses that take payments with Midtrans use it for orders, deposits and subscriptions agreed in chat. These recipes fit a business that takes payment by link:

What stays in Midtrans

Midtrans stays your record of every payment link, transaction, refund and subscription. Customers pay on Midtrans’s own page with the methods you have activated, so their payment details go to Midtrans and never to AeroChat. Settlements, refunds, disputes and reports stay in your Midtrans Dashboard.

AeroChat handles the conversation. It creates links and reads the transactions your recipe asks for and leaves the rest to Midtrans and your team.

WhatsApp workflows that use Midtrans

These end-to-end WhatsApp workflows run with Midtrans behind them. See them all in the WhatsApp workflows library.

Questions

Does AeroChat work with Midtrans?

Yes. It connects through Midtrans’s public API with the Server Key from your own Midtrans account. It is not a Midtrans product, and AeroChat has no partnership with Midtrans.

Can customers pay with Midtrans through WhatsApp?

Yes. AeroChat sends the Midtrans payment link in the WhatsApp chat. The customer taps it, pays on Midtrans’s page with GoPay, QRIS, bank transfer, card or another method you have activated, and AeroChat confirms the payment from the notification Midtrans sends.

Do I need a developer?

No. You describe the workflow in your own words, copy your Server Key from the Access Keys page in the Midtrans Dashboard and enter it in the AeroChat dashboard. AeroChat builds the Midtrans connection from your description and shows a checklist of what is left to do.

Which plan do I need?

On the Midtrans side, you need a Midtrans account with the payment methods you want activated, and its Server Key. Midtrans’s fees are charged to that account. On the AeroChat side, workflows via Skills are on every plan, with a 7-day free trial. Choose by message volume: Starter covers 500 AI responses a month and 3 seats, Growth covers 2,000 responses and 10 seats and adds payment links and broadcasts, and Advanced covers 5,000 responses and 25 seats.

Using a different system? If it has a public API, it connects to AeroChat the same way: describe what you want, paste in its key, and it runs.

Can’t find your tool? Message us in the chat on this page and we’ll tell you how it connects.

Connect Midtrans to your chat

Paste the first recipe, add your Midtrans Sandbox Server Key, and order something from your own number to see the link arrive.

Start your 7-day free trial. No credit card needed.

Sign up for an annual plan on Growth or above and we’ll set up your workflows and connect Midtrans for you, free. See plans.

On Shopify? Install AeroChat from the Shopify App Store.