Title: MyInvoice Sync
Author: TikusL4ju
Published: <strong>2026 年 3 月 6 日</strong>
Last modified: 2026 年 3 月 6 日

---

搜尋外掛

![](https://ps.w.org/myinvoice-sync/assets/banner-772x250.png?rev=3476406)

![](https://ps.w.org/myinvoice-sync/assets/icon-256x256.png?rev=3476406)

# MyInvoice Sync

 由 [TikusL4ju](https://profiles.wordpress.org/nadzree/) 開發

[下載](https://downloads.wordpress.org/plugin/myinvoice-sync.2.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/myinvoice-sync/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/myinvoice-sync/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/myinvoice-sync/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/myinvoice-sync/#developers)

 [技術支援](https://wordpress.org/support/plugin/myinvoice-sync/)

## 外掛說明

MyInvoice Sync automatically generates and submits invoices to the LHDN (Lembaga
Hasil Dalam Negeri) MyInvois system in compliance with Malaysian e‑invoicing regulations.
It integrates with WooCommerce to submit invoices, validate customer TINs, and manage
credit/refund notes.

Key features:

 * Automatic invoice submission based on WooCommerce order status (completed, processing,
   or delayed “after X days”)
 * UBL 1.0/1.1 invoice generation, with optional digital signatures (PEM) for UBL
   1.1
 * TIN capture and validation in user profile and WooCommerce “My Account”
 * Background cron jobs for retries, delayed submissions, and status sync
 * Credit note and refund note creation linked to original invoices

### External Services

This plugin connects to **third‑party external services** operated by LHDN (Lembaga
Hasil Dalam Negeri / Malaysian Inland Revenue Board). Users should be aware of this
before use.

### What the service is and what it is used for

The plugin uses the **LHDN MyInvois API** (official Malaysian government service)
to:

 * Submit invoices generated from WooCommerce orders
 * Validate Tax Identification Numbers (TIN) for customers
 * Retrieve invoice statuses and document details
 * Cancel documents and submit credit/refund notes

### Domains (where the service is hosted)

API and portal domains are selected based on environment:

 * **Sandbox (Pre‑Production)**
    - API: `https://preprod-api.myinvois.hasil.gov.my`
    - Portal: `https://preprod.myinvois.hasil.gov.my`
 * **Production**
    - API: `https://api.myinvois.hasil.gov.my`
    - Portal: `https://myinvois.hasil.gov.my`

### What data is sent and when

 * **Invoice data** — When an order reaches the configured status (completed/processing
   or after the chosen delay), the plugin sends:
    - Invoice number, date, and monetary amounts
    - Buyer information (name, TIN, ID type, ID value, address, contact details)
    - Seller information (TIN, SST/TTX numbers, address, contact details)
    - Line items (products, quantities, prices, descriptions)
    - Tax information and industry classification codes
 * **TIN validation** — When a user submits or updates their TIN in their profile/
   My Account, the plugin sends:
    - Tax Identification Number (TIN)
    - ID Type (e.g. NRIC, Passport, BRN)
    - ID Value
 * **Status and document requests** — Cron jobs and admin actions request invoice
   status and document details from the API.
 * **OAuth authentication** — Client ID and secret are sent to the token endpoint
   to obtain and refresh OAuth access tokens.

Data is sent only when:

 * Orders are submitted to LHDN (automatically or manually)
 * Users explicitly validate their TIN details
 * The plugin syncs invoice statuses or documents (via cron or on‑demand)

All communication with LHDN endpoints uses HTTPS and OAuth 2.0.

### Service provider and policies

 * **Provider:** Lembaga Hasil Dalam Negeri (LHDN / Malaysian Inland Revenue Board)
 * **Terms of use:** https://myinvois.hasil.gov.my/terms
 * **Privacy policy:** https://myinvois.hasil.gov.my/privacy

## 安裝方式

 1. Upload the plugin folder to `/wp-content/plugins/myinvoice-sync/`
 2. Activate the plugin from **Plugins  Installed Plugins**
 3. Go to **MyInvoice Sync  Settings** to configure:
 4.  * Environment (Sandbox / Production)
     * LHDN MyInvois API client ID and secrets
     * Seller TIN, ID type, SST/TTX numbers, address and contact information
     * Billing circle (when invoices are submitted)
 5. For UBL 1.1 with signatures, upload your PEM certificate in the **PEM Certificate
    Management** section.

Requirements:

 * WordPress 5.0 or higher
 * WooCommerce 3.0 or higher (for store integration)
 * PHP 7.4 or higher
 * Valid LHDN MyInvois API credentials

## 常見問題集

### Do I need my own LHDN MyInvois account?

Yes. You must obtain API credentials from LHDN for your business. The plugin does
not provide or broker credentials.

### Does this plugin send data to servers other than LHDN?

No. API calls are made only to the LHDN MyInvois API/portal domains listed in the
External Services section.

### Can I test in Sandbox first?

Yes. You can switch between Sandbox and Production in the plugin settings. API/portal
URLs are adjusted automatically.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈MyInvoice Sync〉的開發相關工作。

參與者

 *   [ TikusL4ju ](https://profiles.wordpress.org/nadzree/)

[將〈MyInvoice Sync〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/myinvoice-sync)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/myinvoice-sync/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/myinvoice-sync/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/myinvoice-sync/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/myinvoice-sync/)。

## 變更記錄

#### 2.1.0

 * Improved nonce validation in user profile TIN save handler based on WordPress.
   org review feedback.
 * Documented external LHDN API/portal services and domains in readme files.

#### 2.0.12

 * Maintenance and compatibility updates.

## 中繼資料

 *  版本 **2.1.0**
 *  最後更新 **4 週前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/myinvoice-sync/)
 * 標籤
 * [lhdn](https://tw.wordpress.org/plugins/tags/lhdn/)[myinvois](https://tw.wordpress.org/plugins/tags/myinvois/)
   [woocommerce](https://tw.wordpress.org/plugins/tags/woocommerce/)
 *  [進階檢視](https://tw.wordpress.org/plugins/myinvoice-sync/advanced/)

## 評分

這個項目尚無任何評論記錄。

[新增使用者評論](https://wordpress.org/support/plugin/myinvoice-sync/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/myinvoice-sync/reviews/)

## 參與者

 *   [ TikusL4ju ](https://profiles.wordpress.org/nadzree/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/myinvoice-sync/)