xendit / m2invoice
Xendit Payment Gateway Module
Installs: 2 937
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 44
Forks: 4
Open Issues: 5
Type:magento2-module
Requires
- php: ~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.1.0||~8.2.0
- magento/framework: >=102.0.3
- magento/module-checkout: >=100.3.3
- magento/module-payment: >=100.3.3
- magento/module-sales: >=102.0.3
This package is auto-updated.
Last update: 2024-11-28 10:18:03 UTC
README
Xendit PG integration plugin with Magento 2.x
Setup
System requirements
This module has been tested against the following tech stacks:
How to
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 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
Install using Composer
- Run your SSH Console to connect to your Magento® 2 store
- Locate the root of your Magento® 2 store.
- 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
- Run your SSH Console to connect to your Magento® 2 store
- Locate the root of your Magento® 2 store.
- Enter the following command line and wait as composer will download the update:
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
B. Install via CLI
To install this plugin, you can either manually copy plugin files into your store's webserver and enable it:
- Download and unzip plugin source code
- Copy the inner
Xendit
folder into yourMAGENTO_DIR/app/code
directory on your store's webserver. You may not have thecode
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:
- From the
MAGENTO_DIR
, executecomposer require xendit/m2invoice
- Enter your authentication keys. Public key is your Magento marketplace's username, your private key is your password.
- Wait until Composer finished updating the dependencies.
After the code is inside the MAGENTO_DIR
, proceed to run these commands:
- From
MAGENTO_DIR
, run these commands:php bin/magento module:status
. You should seeXendit_M2Invoice
on list of disabled modules.php bin/magento module:enable Xendit_M2Invoice
php bin/magento setup:upgrade
- Run
php bin/magento module:status
again to ensureXendit_M2Invoice
is enabled already. - You should flush Magento cache by using
php bin/magento cache:flush
- Compile Magento with newly added module by using
php bin/magento setup:di:compile
- After finished compiling, run
php bin/magento setup:static-content:deploy -f
- Then flush the cache again with
php bin/magento cache:flush
- You can see Xendit's setting page by navigating to Stores -> Configuration -> Sales -> Payment Method
- 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
Automatic Order Cancellation
If the Xendit payment links expired, it will auto cancel the order via the webhook.
Supported Payment Method
- Credit and Debit Card
- Installment
- Subscription
- 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
Since v1.3.0, online refund (full and partial) is supported for payment through credit and debit card channel.
Multishipping Support
Since v2.0.0, multishipping checkout is supported for all payment methods.
Installment & Subscription
Since v2.2.0, merchant can setup installment & subscription payment methods via credit card.
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
Team: TPI Team
Slack Channel: #integration-product
Slack Mentions: @troops-tpi