# How do I connect Midtrans to my store?

Midtrans lets customers in Indonesia pay with GoPay, QRIS, bank virtual accounts, cards or Indomaret on Midtrans' secure page, using your own Midtrans account. It charges in Indonesian rupiah (IDR) only, so it appears at checkout only when your prices are in IDR.

## Steps

1. In your Midtrans dashboard (dashboard.midtrans.com), open **Settings > Access Keys** and copy the **server key**. Sandbox keys start with `SB-Mid-server-`, production keys with `Mid-server-`.
2. In Dropify, go to **Apps**, find **Midtrans** and click **Install and connect**.
3. On the app page click **Connect Midtrans**, type an **Account name**, fill in **Server key**, then click **Add account**. Dropify checks the keys with Midtrans before saving.
4. Nothing to paste: under **Webhook URL** the page says Dropify sends the address to Midtrans with every payment.
5. In the **Settings** section choose **Sandbox Mode** to test or **Live Mode** for real payments, with the matching keys.
6. Go to **Payments > Payment methods** and switch Midtrans on. You can also set a **Discount for prepaid orders** for it.
7. Place a test order in IDR and pay on the Midtrans test page.

## Common problems

- "Midtrans rejected these keys in test mode…" → keys of the other mode, or copied with spaces. Copy them again or switch the mode in **Settings**.
- Midtrans does not show at checkout → your prices (or the visitor's currency) are not in IDR, or Midtrans is switched off in **Payments > Payment methods**.
- The customer sees "You cancelled the payment. You can try again or choose another payment method." → they left the Midtrans page without paying.

## Related
- [How do I connect Xendit to my store?](https://help.dropify.shop/en/payments_gateways/xendit/)
