Connect DOKU to WhatsApp, Instagram and AI Chat
Yes. AeroChat works directly with DOKU. It creates a DOKU Checkout payment link for the amount agreed in the conversation, sends it in the chat and checks whether it was paid, through DOKU’s API, on WhatsApp, Instagram, web chat and every other channel your customers use.
Customers message you on WhatsApp, Instagram, Messenger, Telegram, web chat or email, and once they decide, they want to pay right there. If you collect payments in Indonesia with DOKU, AeroChat creates a DOKU Checkout payment for the order, booking or fee, sends the link in the same chat, and confirms in the chat once DOKU shows it as paid. Customers pay on DOKU’s own Checkout page with the methods your DOKU account offers, such as virtual accounts, QRIS, cards and e-wallets. AeroChat never sees card or bank details and never holds money. The funds go to your own DOKU account. You describe the workflow in your own words, AeroChat builds it, and DOKU stays the place your team checks.
What you can do with DOKU and AeroChat
- Send a DOKU payment link in chat. When a customer confirms an order, AeroChat creates a DOKU Checkout payment for the exact amount in rupiah, with your order number as the invoice number, and sends the link.
- Confirm the payment in the same chat. DOKU sends a notification when the payment succeeds. AeroChat confirms the order in the conversation, so the customer never has to tell you they paid.
- Answer “did my payment go through?”. AeroChat checks the order in DOKU by its invoice number and tells the customer whether it is paid, pending, expired or failed.
- Send a new link when one expires. A DOKU Checkout link has a payment due time, 60 minutes unless you set another. When it expires unpaid, AeroChat tells the customer and sends a fresh link if they still want the order.
- Cancel an unpaid link. If the customer changes the order, AeroChat cancels the unpaid checkout through DOKU’s Cancel Order API, where you have turned it on. DOKU supports this for virtual account and QRIS payments.
- Refund a card payment. For card payments, AeroChat requests a full or partial refund through DOKU’s refund API within the limit you set, and tells the customer DOKU’s answer.
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: Oke, saya ambil 2 botol serum dan 1 toner. (example)
AeroChat: Baik. 2 serum dan 1 toner, ditambah ongkir Rp 15.000, totalnya Rp 465.000 (example). Ini link pembayaran DOKU untuk pesanan #ID-5521. Bisa bayar dengan virtual account, QRIS atau e-wallet.
AeroChat: Pembayaran diterima, terima kasih. Pesanan #ID-5521 dikonfirmasi dan dikirim besok.
In DOKU: a Checkout payment of Rp 465.000 with invoice number ID-5521 is created and shows as successful. The money is in your DOKU account.
Customer: I paid by bank transfer an hour ago. Did it go through? (example)
AeroChat: Not yet. The link for order #ID-5530 expired before a payment reached DOKU, so you have not been charged. Here is a new link for the same amount. It stays open for 60 minutes.
In DOKU: AeroChat checked the order status, saw it expired, and created a new Checkout payment for the same order under a new invoice number.
Works on every chat channel
Your customers pay wherever they already message you. The same DOKU connection and the same workflows run on each of these channels, and DOKU stays the record whichever one they use.
| Channel | What your customers can do |
|---|---|
| Message your WhatsApp Business number to buy or book, get a DOKU link in the chat and see the confirmation there once they pay. Voice notes are transcribed, so a spoken request works too. | |
| Do the same by direct message. A comment on your post can get an automatic reply that moves the conversation to a DM. | |
| Facebook Messenger | Do the same with your Facebook Page. Comments on your Page posts can get an automatic reply too. |
| Telegram | Do the same with your business on Telegram. |
| Web chat | Get the DOKU link in the chat on your website and pay without leaving the conversation behind. |
| Write to your Gmail or Office 365 address and get the payment link by reply. |
How the connection works
AeroChat connects through DOKU’s API, documented at developers.doku.com. Through it, AeroChat creates DOKU Checkout payments, checks an order’s status, cancels unpaid checkouts and requests card refunds. Each payment carries your order number as its invoice number, so it is easy to match in DOKU later. Each workflow uses only what its recipe asks for.
- What AeroChat reads from DOKU: each order’s status (pending, success, expired or failed), the amount and the payment method used, and the payment notifications DOKU sends when an order is paid or expires.
- What AeroChat writes to DOKU: new Checkout payments with the amount, invoice number, line items, payment due time and the customer’s name, email and phone, cancellations of unpaid virtual account and QRIS checkouts, and refund requests for card payments.
To connect, copy your Client ID and Secret Key from the DOKU Back Office. DOKU has a separate sandbox account with its own keys, so you can try the workflow before you take real payments. Set your notification URL in the DOKU Back Office so DOKU can tell AeroChat when a payment succeeds. DOKU can also send a notification when an order expires, once you turn that on in its Checkout settings.
Cancel Order is off by default in DOKU. Turn it on under Checkout settings if you want unpaid links canceled from the chat. Refunds through DOKU’s API apply to card payments. For other methods, AeroChat passes the refund request to your team.
You describe the workflow in your own words, for example “when a customer confirms an order, send a DOKU link for the total and confirm the order once it is paid”. AeroChat builds the workflow as a draft and asks for the DOKU keys by name. You enter them in the AeroChat dashboard. They never pass through the conversation.
Payments go to your own DOKU account under your DOKU terms. AeroChat does not process or hold any money.
Workflows to copy
Six ready-made workflows for DOKU. Copy one into AeroChat, add your DOKU keys, and it runs on every channel.
1. Send a DOKU payment link
Copy this into AeroChat
When a customer confirms an order, read back the items, delivery and total in rupiah and ask them to confirm. Ask for their name, email and phone number. Create a DOKU Checkout payment for the total with the order number as the invoice number and the items as line items, open for 60 minutes. Send the payment link in the chat with the amount. Never ask for card or bank details in the chat. Reply in the customer’s language.
2. Confirm the payment in the same chat
Copy this into AeroChat
After you send a DOKU link, wait for DOKU’s notification that the payment succeeded. When it arrives, thank the customer and confirm the order number, the items and when it will ship, in the same conversation. If the customer asks a question before paying, answer it and send the same link again. Do not create a second payment for the same order while the first link is still open.
3. Answer “did my payment go through?”
Copy this into AeroChat
When a customer asks whether their payment went through, check the order in DOKU by the invoice number we used. If it is successful, confirm the amount and the order. If it is pending, tell them DOKU is still waiting for the payment and that we will confirm here once it arrives. If it expired or failed, tell them they have not been charged and offer a new link. Never share another customer’s payment.
4. Send a new link when one expires
Copy this into AeroChat
When DOKU tells us a payment link expired unpaid, message the customer in the same conversation. Tell them the link has expired and ask if they still want the order. If they do, check the items are still available and create a new DOKU Checkout payment for the same amount, with a new invoice number made from the order number, for example ID-5530-2 (example), and send it.
5. Cancel an unpaid link
Copy this into AeroChat
When a customer wants to change an order after we sent a DOKU link, check the order in DOKU. If it is still unpaid and the customer chose a virtual account or QRIS, cancel the checkout in DOKU, then create a new link for the new total with a new invoice number made from the order number. If it is already paid, do not cancel. Tell them it is paid and hand the change to our team.
6. Refund a card payment
Copy this into AeroChat
When a customer asks for a refund, check the order and our refund policy in the knowledge base. If the order was paid by card, the refund is allowed by our policy and it is Rp 500.000 or less (example), request the refund in DOKU for the full or partial amount. Tell the customer what DOKU answered. For larger amounts, other payment methods or anything outside our policy, hand the conversation to our team with the order number and the reason.
Who uses it
Online sellers, service businesses and schools in Indonesia that collect payment with DOKU use it for orders, deposits and fees agreed in chat. These recipes fit a business that takes payment by link:
- Product recommendations for beauty stores
- Tuition enrollment with payment
- Event and catering deposits
What stays in DOKU
DOKU stays your record of every payment. Customers pay on DOKU’s own Checkout page with the methods your account offers, so their payment details go to DOKU and never to AeroChat. Settlements and reports stay in your DOKU Back Office, and refunds for methods other than cards stay with your team.
AeroChat handles the conversation. It creates, checks and cancels the payments your recipe asks for and leaves the rest to DOKU and your team.
WhatsApp workflows that use DOKU
These end-to-end WhatsApp workflows run with DOKU behind them. See them all in the WhatsApp workflows library.
- WhatsApp Payment Links That Confirm the Order When Paid
- WhatsApp Booking Deposits Paid Before the Slot Is Confirmed
- WhatsApp Returns and Refunds Checked Against Your Policy
Questions
Does AeroChat work with DOKU?
Yes. It connects through DOKU’s API with the Client ID and Secret Key from your own DOKU account. It is not a DOKU product, and AeroChat has no partnership with DOKU.
Can customers pay with DOKU through WhatsApp?
Yes. AeroChat sends the DOKU Checkout link in the WhatsApp chat. The customer taps it, picks a payment method on DOKU’s page and pays, and AeroChat confirms the payment in the same chat once DOKU shows it as successful.
Does AeroChat hold my money or see bank details?
No. Customers pay on DOKU’s page, so AeroChat never sees card numbers or bank logins and never holds your funds. The money goes to your DOKU account.
Which plan do I need?
On the DOKU side, you need an activated DOKU business account and its Client ID and Secret Key. DOKU’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, Growth 2,000 and Advanced 5,000.
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 DOKU to your chat
Paste the payment link recipe, add your DOKU sandbox keys, and buy something from your own number.
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 DOKU for you, free. See plans.
On Shopify? Install AeroChat from the Shopify App Store.
