Xendit PG integration plugin with Magento 2.x
This module has been tested against the following tech stacks:
Magento Version | OS | Database | PHP | Web Server |
---|---|---|---|---|
2.4.x | Ubuntu 18.04.2 LTS | MariaDB 10.1.39 | 8.x | Apache 2.4.37 |
2.4.0 | Ubuntu 18.04.2 LTS | MariaDB 10.1.39 | 7.4.1 | Apache 2.4.37 |
2.3.2 | Ubuntu 18.04.2 LTS | MariaDB 10.1.39 | 7.2.12 | Apache 2.4.37 |
2.2.5 | Debian GNU/Linux 9 | MariaDB 10.3 | 7.0.33 | Apache 2.2 |
2.1.18 | Debian GNU/Linux 9 | MariaDB 10.3 | 7.0.33 | Apache 2.4 |
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 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. https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx
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
.
composer update xendit/m2invoice
Enter following commands to start Magento® update process:
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
To install this plugin, you can either manually copy plugin files into your store's webserver and enable it:
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 from Magento marketplace, and install it via composer:
MAGENTO_DIR
, execute composer require xendit/m2invoice
After the code is inside the MAGENTO_DIR
, proceed to run these commands:
MAGENTO_DIR
, run these commands:
php bin/magento module:status
. You should see Xendit_M2Invoice
on list of disabled modules.php bin/magento module:enable Xendit_M2Invoice
php bin/magento setup:upgrade
php bin/magento module:status
again to ensure Xendit_M2Invoice
is enabled already.php bin/magento cache:flush
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
If the Xendit payment links expired, it will auto cancel the order via the webhook.
Since v1.3.0, online refund (full and partial) is supported for payment through credit and debit card channel.
Since v2.0.0, multishipping checkout is supported for all payment methods.
Since v2.2.0, merchant can setup installment & subscription payment methods via credit card.
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.
Team: TPI Team
Slack Channel: #integration-product
Slack Mentions: @troops-tpi