Midtrans Payment Gateway - Snap Checkout, QRIS, GoPay, Virtual Account | Midtrans Payment for Website and POS
by Modvanta https://modvantaapps.tech/odoo-apps/payment-midtrans/$ 28.92
Midtrans Payment Gateway for Odoo 19 - Website, Invoices and POS
Accept Midtrans payments in Odoo: the customer pays on the Midtrans Snap page with card, QRIS, GoPay, ShopeePay, OVO, DANA, bank virtual accounts, Akulaku or Kredivo, from the website checkout, an invoice, a payment link or the Point of Sale QR code. Every notification is checked with the Midtrans signature key, lost notifications are recovered with the Get Status API, and refunds are sent from Odoo.
MidtransMidtrans PaymentMidtrans Payment GatewaySnapQRISGoPayShopeePayVirtual AccountIndonesia PaymentPayment Gateway IndonesiaPoint of SaleIDR1 module website, invoices, payment links and POS | 15 methods card, QRIS, e-wallets, virtual accounts, pay later | SHA512 signature key checked on every notification | 2 languages English and Indonesian |
Who it is for
| Shops in Indonesia selling in rupiah (IDR) on the Odoo website or at an Odoo Point of Sale. | |
| Companies that send invoices or payment links and want customers to pay them by QRIS, e-wallet, card or bank transfer through their Midtrans account. |
Key features
Midtrans at the website checkout
Midtrans appears as a payment provider with its methods. Choosing Midtrans Snap opens the Midtrans page with every method active on your account; choosing a single method (QRIS, GoPay, BCA...) opens Snap with that method only. The order lines and the customer's name, email, phone and billing address are sent when you want them (switches on the provider).

Paid orders are confirmed by Midtrans, not by the browser
When the customer comes back, Odoo asks Midtrans for the status with your server key: the query string of the return link is never trusted. The HTTP notification is accepted only when its signature key matches, and a repeated or late notification does not change a paid order.

Virtual accounts and other payments that are paid later
A bank transfer or convenience store payment stays pending until the customer pays. The customer sees a clear pending message instead of a page that keeps waiting, the virtual account number is stored on the transaction, and the order is confirmed by the notification or by the scheduled status check.

Point of Sale: scan to pay
With Odoo's Point of Sale online payment, add Midtrans to an online payment method: the register shows a QR code, the customer opens the payment page on the phone and pays on Midtrans, and the register shows Payment Successful as soon as Midtrans confirms.

Walk-in customers at the register
An order without a customer sends no customer details at all (not the shop's, not the public user's name), and the pay-later methods that need a known buyer are left out.

Order paid in the register
The POS order is marked paid with the Midtrans payment line, ready to print the receipt.

Simple setup
Enter the server key (and the merchant ID for reference), copy the Payment Notification URL into the Midtrans dashboard, and check the key with Test Connection. Test mode uses the Midtrans sandbox, Enabled uses production. The provider is installed disabled.

Payment page options
Payment expiry in minutes, send the order lines, send the customer details, and how long to keep the API log.

Everything Midtrans said, on the transaction
Midtrans transaction ID, status and fraud status, method used, virtual account number, card and approval code, plus buttons to check the status or cancel an unpaid payment on Midtrans (the Snap page before a method is chosen, the transaction after).

API log
Every call and notification is logged with its answer, keys and contact details masked, and cleaned up after the number of days you set.

How it works
1 | Install - the provider is created disabled, with the Midtrans methods attached. |
2 | Configure - enter your server key, copy the notification URL into the Midtrans dashboard and run Test Connection. |
3 | Publish - set the provider to Test mode on the sandbox, then Enabled on production. |
4 | Get paid - customers pay on Midtrans; Odoo confirms each payment from the notification or the status check, every 10 minutes for the ones still waiting. |
5 | Refund - refund from the payment in Odoo, in full or in part where Midtrans allows it. |
Refunds and cancellations
| Card, GoPay, ShopeePay, DANA, OVO, QRIS, Kredivo and Akulaku payments refund from Odoo with a refund key, so a retry cannot refund twice. ShopeePay and OVO refund in full only, as Midtrans documents. | |
| Bank transfers (virtual accounts) have no Midtrans refund: Odoo says so and sends nothing. | |
| An unpaid payment can be cancelled on Midtrans from the transaction; expired payments are cancelled in Odoo by the scheduled check. |
What is not included
| The Snap pop-up (Snap.js) is not used: customers are redirected to the Midtrans page. | |
| No card pre-authorisation capture, saved cards, GoPay tokenization or subscriptions. | |
| Only Indonesian rupiah (IDR). | |
| Tested against a local simulator built from the Midtrans documentation; it was not run against the Midtrans sandbox or production. You need your own Midtrans account and keys. |
FAQ
Midtrans is a trademark of its owner. This module is not affiliated with or endorsed by Midtrans.
Support
Questions, a bug or a change you need: write to modvantaapps@gmail.com. We answer every message.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 1004 |
| Technical Name |
mdv_payment_midtrans |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/payment-midtrans/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module