PHPackages                             xendit/m2invoice - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. xendit/m2invoice

ActiveMagento2-module[Payment Processing](/categories/payments)

xendit/m2invoice
================

Xendit Payment Gateway Module

13.0.1(2d ago)74.0k4GPL-3.0PHPPHP ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0

Since Jul 30Pushed 2w ago38 watchersCompare

[ Source](https://github.com/xendit/xendit-magento-payment-module)[ Packagist](https://packagist.org/packages/xendit/m2invoice)[ RSS](/packages/xendit-m2invoice/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (8)Versions (29)Used By (0)

xendit-magento-payment-module
-----------------------------

[](#xendit-magento-payment-module)

Xendit PG integration plugin with Magento 2.x

- [Setup on Magento](#setup-on-magento) = setup if you want to use this module
- [Development](./DEV.md) = see this file if you want to contribute

Setup on Magento
----------------

[](#setup-on-magento)

### System requirements

[](#system-requirements)

This module has been tested against the following tech stacks:

Magento VersionOSDatabasePHPWeb Server2.4.xUbuntu 18.04.2 LTSMariaDB 10.1.398.xApache 2.4.372.4.0Ubuntu 18.04.2 LTSMariaDB 10.1.397.4.1Apache 2.4.372.3.2Ubuntu 18.04.2 LTSMariaDB 10.1.397.2.12Apache 2.4.372.2.5Debian GNU/Linux 9MariaDB 10.37.0.33Apache 2.22.1.18Debian GNU/Linux 9MariaDB 10.37.0.33Apache 2.4### How to

[](#how-to)

A. Installation using Composer
------------------------------

[](#a-installation-using-composer)

Magento® 2 use the Composer to manage the module package and the library. Composer is a dependency manager for PHP. Composer declare the libraries your project depends on and it will manage (install/update) them for you.

### Check Composer Status

[](#check-composer-status)

Check if your server has composer installed by running the following command:

`composer –v`

If your server doesn’t have the composer install, you can easily install it.

### Install using Composer

[](#install-using-composer)

1. Run your SSH Console to connect to your Magento® 2 store
2. Locate the root of your Magento® 2 store.
3. Enter the command line in your Root and wait as composer will download the extension for you:

`composer require xendit/m2invoice`

When it’s finished you can activate the extension, clean the caches and deploy the content in your Magento® environment using the following command line;

- `php bin/magento module:enable Xendit_M2Invoice`
- `php bin/magento setup:upgrade`
- `php bin/magento cache:clean`

If Magento® is running in production mode, deploy the static content:

`php bin/magento setup:static-content:deploy`

After the installation. Go to your Magento® admin portal, to `Stores > Configuration > Sales > Payment Methods > Xendit`.

### Update through Composer

[](#update-through-composer)

1. Run your SSH Console to connect to your Magento® 2 store
2. Locate the root of your Magento® 2 store.
3. Enter the following command line and wait as composer will download the update:

`composer update xendit/m2invoice`

4. Enter following commands to start Magento® update process:

- `php bin/magento setup:upgrade`
- `php bin/magento cache:clean`

5. If Magento® is running in production mode, deploy the static content:

`php bin/magento setup:static-content:deploy`

B. Install via CLI
------------------

[](#b-install-via-cli)

To install this plugin, you can either manually copy plugin files into your store's webserver and enable it:

1. Download and unzip plugin source code
2. Copy the inner `Xendit` folder into your `MAGENTO_DIR/app/code` directory on your store's webserver. You may not have the `code` folder by default, you can proceed to create it manually.

Or, you can use get our [free plugin](https://marketplace.magento.com/xendit-m2invoice.html) from Magento marketplace, and install it via composer:

1. From the `MAGENTO_DIR`, execute `composer require xendit/m2invoice`
2. Enter your authentication keys. Public key is your Magento marketplace's username, your private key is your password.
3. Wait until Composer finished updating the dependencies.

After the code is inside the `MAGENTO_DIR`, proceed to run these commands:

1. From `MAGENTO_DIR`, run these commands:
    1. `php bin/magento module:status`. You should see `Xendit_M2Invoice` on list of disabled modules.
    2. `php bin/magento module:enable Xendit_M2Invoice`
    3. `php bin/magento setup:upgrade`
    4. Run `php bin/magento module:status` again to ensure `Xendit_M2Invoice` is enabled already.
    5. You should flush Magento cache by using `php bin/magento cache:flush`
    6. Compile Magento with newly added module by using `php bin/magento setup:di:compile`
    7. After finished compiling, run `php bin/magento setup:static-content:deploy -f`
    8. Then flush the cache again with `php bin/magento cache:flush`
2. You can see Xendit's setting page by navigating to **Stores -&gt; Configuration -&gt; Sales -&gt; Payment Method**
3. Once you enable Xendit on the setting page, you should see Xendit's payment methods (credit card and bank transfer) on payment section during checkout flow.

C. Install via marketplace
--------------------------

[](#c-install-via-marketplace)

### Automatic Order Cancellation

[](#automatic-order-cancellation)

If the Xendit payment links expired, it will auto cancel the order via the webhook.

Supported Payment Method
------------------------

[](#supported-payment-method)

- Credit and Debit Card
    - Installment
- Virtual Accounts
    - BCA
    - BJB
    - BNI
    - BRI
    - BSI
    - Mandiri
    - Permata
    - CIMB
- Retail Outlets
    - Alfamart
    - Indomaret
    - 7-Eleven (PH)
    - ECPay Loan (PH)
    - ECPay School (PH)
    - Cebuana (PH)
    - M Lhuillier (PH)
    - Palawan Express Pera Padala (PH)
    - LBC (PH)
- eWallets
    - OVO
    - DANA
    - LinkAja
    - QRIS
    - ShopeePay
    - GrabPay (PH)
    - GCash (PH)
    - PayMaya (PH)
    - JeniusPay
- PayLater
    - Kredivo
    - BillEase (PH)
    - Cashalo (PH)
    - Uangme
    - AstraPay
    - Akulaku
- Direct Debit
    - BRI
    - BPI (PH)
    - UBP (PH)
    - ChinaBank (PH)
    - BDO (PH)

Refund Support
--------------

[](#refund-support)

Since v1.3.0, online refund (full and partial) is supported for payment through credit and debit card channel.

Multishipping Support
---------------------

[](#multishipping-support)

Since v2.0.0, multishipping checkout is supported for all payment methods.

Installment
-----------

[](#installment)

Since v2.2.0, merchant can setup installment payment methods via credit card.

Unit Testing
------------

[](#unit-testing)

To run unit test, run this command from you `MAGENTO_DIR`:

`php bin/magento dev:tests:run unit`

Currently, haven't found out a way to run tests outside Magento environment.

Ownership
---------

[](#ownership)

Team: [TPI Team](https://www.draw.io/?state=%7B%22ids%22:%5B%221Vk1zqYgX2YqjJYieQ6qDPh0PhB2yAd0j%22%5D,%22action%22:%22open%22,%22userId%22:%22104938211257040552218%22%7D)

Slack Channel: [\#integration-product](https://xendit.slack.com/messages/integration-product)

Slack Mentions: `@troops-tpi`

###  Health Score

60

↑

FairBetter than 98% of packages

Maintenance98

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~68 days

Recently: every ~61 days

Total

22

Last Release

2d ago

Major Versions

8.0.0 → 9.0.12023-01-09

9.0.1 → 10.0.02023-01-11

10.0.3 → 11.0.02023-10-23

11.0.1 → 12.0.02023-12-04

12.1.6 → 13.0.12026-07-01

PHP version history (6 changes)4.0.0PHP ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.1.0

4.0.1PHP &gt;=7.1

10.0.2PHP ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.1.0||~8.2.0

12.0.4PHP ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.1.0||~8.2.0||~8.3.0

12.1.1PHP ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0

13.0.1PHP ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7462e7cf50b1357e74cc9e62eac4c7c1ef7440fb52ebbda13dea554ae8a7f4ef?d=identicon)[ellennugroho](/maintainers/ellennugroho)

![](https://www.gravatar.com/avatar/5c22deaaf7bf8f19fb03f01b4ed1ad6a4b87394703d1541668a09fefd610e4b2?d=identicon)[thirdpartyintegrations](/maintainers/thirdpartyintegrations)

---

Top Contributors

[![hakiemaul](https://avatars.githubusercontent.com/u/26397064?v=4)](https://github.com/hakiemaul "hakiemaul (232 commits)")[![IreneGohtami](https://avatars.githubusercontent.com/u/13362277?v=4)](https://github.com/IreneGohtami "IreneGohtami (145 commits)")[![candrasaputra](https://avatars.githubusercontent.com/u/9255677?v=4)](https://github.com/candrasaputra "candrasaputra (93 commits)")[![andykim](https://avatars.githubusercontent.com/u/5335952?v=4)](https://github.com/andykim "andykim (63 commits)")[![yanoandri](https://avatars.githubusercontent.com/u/10803436?v=4)](https://github.com/yanoandri "yanoandri (49 commits)")[![seanyu4296](https://avatars.githubusercontent.com/u/11349232?v=4)](https://github.com/seanyu4296 "seanyu4296 (43 commits)")[![kevinalfianto](https://avatars.githubusercontent.com/u/3599274?v=4)](https://github.com/kevinalfianto "kevinalfianto (12 commits)")[![andykimlong](https://avatars.githubusercontent.com/u/103802128?v=4)](https://github.com/andykimlong "andykimlong (9 commits)")[![rccastro16](https://avatars.githubusercontent.com/u/18639307?v=4)](https://github.com/rccastro16 "rccastro16 (1 commits)")[![tidnexloydep](https://avatars.githubusercontent.com/u/67045715?v=4)](https://github.com/tidnexloydep "tidnexloydep (1 commits)")[![utkarsha2016](https://avatars.githubusercontent.com/u/25679765?v=4)](https://github.com/utkarsha2016 "utkarsha2016 (1 commits)")[![MaGuangChen](https://avatars.githubusercontent.com/u/20204434?v=4)](https://github.com/MaGuangChen "MaGuangChen (1 commits)")[![danilhendrasr](https://avatars.githubusercontent.com/u/45989466?v=4)](https://github.com/danilhendrasr "danilhendrasr (1 commits)")[![benaya-christo](https://avatars.githubusercontent.com/u/106946042?v=4)](https://github.com/benaya-christo "benaya-christo (1 commits)")[![boxbag](https://avatars.githubusercontent.com/u/719745?v=4)](https://github.com/boxbag "boxbag (1 commits)")

### Embed Badge

![Health badge](/badges/xendit-m2invoice/health.svg)

```
[![Health](https://phpackages.com/badges/xendit-m2invoice/health.svg)](https://phpackages.com/packages/xendit-m2invoice)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[buckaroo/magento2

Buckaroo Magento 2 extension

32420.3k8](/packages/buckaroo-magento2)[vipps/module-payment

Vipps MobilePay Payment Module for Magento 2

1098.4k](/packages/vipps-module-payment)[amzn/amazon-pay-magento-2-module

Official Magento2 Plugin to integrate with Amazon Pay

108531.2k1](/packages/amzn-amazon-pay-magento-2-module)[paynl/magento2-plugin

Pay. Payment methods for Magento 2

31329.9k6](/packages/paynl-magento2-plugin)[afterpay-global/module-afterpay

Magento 2 Afterpay Payment Module

26325.8k2](/packages/afterpay-global-module-afterpay)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
