Skip to content

Free webinar, 4 November, 9pm: envoice with Zoho Books and Zoho CRM, live demo by Aplikasi. Register

← All guides

LHDN e-Invoice for Magento 2: free MyInvois module (Malaysia)

Updated 9 November 2026

Short answer

Magento Open Source and Adobe Commerce cannot submit e-invoices to LHDN MyInvois on their own. envoice's free Magento 2 module does it: it files paid orders, consolidated B2C sales and credit memos to MyInvois in the background through Magento cron. There is no build fee. You pay only a monthly envoice plan, from RM0.

Does Magento support MyInvois?

No. Neither Magento Open Source nor Adobe Commerce connects to Malaysia's MyInvois system out of the box. A Magento invoice is a payment record inside your store, not a validated LHDN e-invoice. To comply, each sale has to reach LHDN in the format it expects and come back with a validation QR code.

What are the options for Magento e-invoicing?

MyInvois portalCustom-built moduleenvoice free module
Module costNoneOne-off build feeRM0
Monthly costRM0, plus your staff timeDeveloper time for every fixenvoice plan, RM0 to RM500
FilingYou key in each saleAutomatic, as builtAutomatic, through Magento cron
Consolidated B2C e-invoiceYou prepare it each monthOnly if builtBuilt in
Credit notes for refundsBy handOnly if builtFiled from credit memos
LHDN rule changesYou track them yourselfYou pay to update itKept up to date by envoice
Why a monthly plan usually costs less than a build. LHDN keeps revising its e-invoice rules: the RM10,000 ceiling on consolidated sales from 1 January 2026, buyer TIN and BRN checked together from 1 August 2026, and the RM3 million exemption threshold in Guideline Version 4.8. With a custom module, each change is new development work. With envoice, rules like these are applied on envoice's side, so the module keeps working without a rebuild.

How do I connect Magento to LHDN MyInvois?

  1. Install the free module with Composer (composer require envoice/module-einvoice) or unzip the download from envoice.my into app/code, then run bin/magento setup:upgrade.
  2. In Stores > Configuration > envoice > LHDN e-Invoice, click Connect to envoice, sign in, and pick your envoice shop. Start free if you have no account yet.
  3. Add your LHDN MyInvois Client ID and Client Secret in envoice. No digital certificate is needed. You can test in sandbox first.
  4. Choose how paid orders file: each as an individual e-invoice, or orders with no buyer TIN into the monthly consolidated e-invoice.
  5. When an order is invoiced as paid, Magento cron sends it to envoice within a minute. The LHDN status, UUID, validation link and receipt appear on the order page, with a Retry button if anything fails.

Magento cron must be running (bin/magento cron:install). Nothing calls envoice during checkout. A failed call is retried with growing gaps, from 1 minute up to a day, so a short outage does not lose an order. The module supports Magento 2.4.7 to 2.4.9 on PHP 8.2 to 8.5.

Every step with screenshots, including the order page and troubleshooting: Connect Magento.

Magento consolidated e-invoice for B2C orders

Most Magento orders are B2C, and the buyer does not need an e-invoice in their own name. Set auto-submit to consolidated and those orders are pooled into one consolidated e-invoice for the month, which envoice files in the first 7 days of the next month. See consolidated vs individual e-invoice.

LHDN rules every Magento store must follow

  • 7 days: the monthly consolidated e-invoice must be submitted within 7 days after the end of the month.
  • RM10,000: a single sale above RM10,000 cannot go into the consolidated e-invoice. It needs an individual e-invoice with the buyer's details. The module files these individually.
  • TIN and BRN: a business buyer is identified by their TIN and business registration number (BRN), and since 1 August 2026 MyInvois checks the two together.
  • 72 hours: a validated e-invoice can be cancelled within 72 hours. After that, a correction is made with a credit note, which the module files from a credit memo.

How do business buyers get their own e-invoice?

Orders with a buyer TIN always file as individual e-invoices. At checkout, a business buyer gives their TIN in Magento's VAT number field (turn on Show VAT Number on Storefront) and their BRN or IC in the module's own optional field, which LHDN needs alongside the TIN. On the order page you can add or fix the buyer's details, click Look up TIN to fetch the TIN from LHDN using their BRN or IC, and cancel a validated e-invoice within LHDN's 72 hour window.

How are Magento refunds and credit memos handled?

Create a credit memo as usual. For an order that was filed as its own e-invoice, the module files a credit note to LHDN that references it, and the order page shows the credit note status. For a walk-in order still waiting for the monthly consolidated e-invoice, the refund is simply taken off that month’s total, so no credit note is needed. You can switch credit notes off in the module settings if you handle refunds another way.

Can one Magento install file for several stores or businesses?

Yes. Each store URL pairs with its own envoice shop. A store view with its own domain, or with store codes in its URLs, can file under a different business and TIN. Store views that share one URL share one pairing. The automation settings can be set per website or per store view.

How much does Magento e-invoicing cost?

The module is free and MIT licensed. You pay only for your envoice plan, and every connection on your account shares it. There is no build fee and no charge for module updates.

PlanPricee-Invoices a monthConsolidated sales a month
FreeRM050150
StarterRM35 a month500750
ProRM90 a month3,0003,000
EnterpriseFrom RM500 a monthUnlimitedUnlimited

Each plan includes one shop. Extra shops are RM15 a month each. Full details are on the pricing page.

Do I have to change my Magento setup?

No. Your storefront, checkout, payment methods and order flow stay the same. The module reads paid invoices and credit memos and writes the LHDN result back onto the order. Setup steps and common questions are on the envoice for Magento page.

Download the free Magento module

Frequently asked questions

Is there a Magento extension for LHDN MyInvois?

Yes. envoice has a free Magento 2 module that files paid orders and credit memos to LHDN MyInvois. Download it from envoice.my and connect it to an envoice account. The Free plan is enough to start.

Does it work with Adobe Commerce as well as Magento Open Source?

Yes. The same module works with Magento Open Source and Adobe Commerce, including stores with several websites and store views.

Which Magento versions are supported?

Magento 2.4.7 to 2.4.9, on PHP 8.2 to 8.5.

Does the module slow down checkout?

No. Nothing calls envoice during checkout or while an invoice is saved. Paid invoices and credit memos go into a queue, and Magento cron sends them within a minute.

When must a Magento store submit its consolidated e-invoice?

LHDN requires the monthly consolidated e-invoice within 7 days after the end of the month. envoice files it in that window, and any single sale above RM10,000 is filed as an individual e-invoice instead.

How does a business buyer get their own e-invoice from a Magento store?

The buyer gives their TIN at checkout through the VAT number field, or you add their TIN and ID number on the order page. The order then files as an individual e-invoice. MyInvois checks the TIN and BRN together, so both must belong to the same business.

What happens when I refund an order with a credit memo?

If the order had its own e-invoice, the module files a credit note to LHDN that references it and shows its status on the order page. If it was a walk-in order waiting for the monthly consolidated e-invoice, the refund comes off that month’s total instead.

Can several stores or store views use one install?

Yes. Each store URL pairs with its own envoice shop, so store views on different domains can file under different businesses. Extra shops are RM15 a month each.

How much does the Magento module cost?

The module is free, with no build fee. You pay only for your envoice plan. Free covers 50 e-invoices and 150 consolidated sales a month, Starter is RM35 a month and Pro is RM90 a month.

Is it on Packagist or the Adobe Commerce Marketplace?

It is on Packagist, so composer require envoice/module-einvoice installs it. It is also a free zip download from envoice.my. It is not yet listed on the Adobe Commerce Marketplace.

Sources