xendit/m2invoice 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xendit/m2invoice

Composer 安装命令:

composer require xendit/m2invoice

包简介

Xendit Payment Gateway Module

README 文档

README

Xendit PG integration plugin with Magento 2.x

Setup on Magento

System requirements

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

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

  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

  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

  1. Enter following commands to start Magento® update process:
  • php bin/magento setup:upgrade
  • php bin/magento cache:clean
  1. 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:

  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 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 -> Configuration -> Sales -> 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

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
  • 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

Since v2.2.0, merchant can setup installment 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

xendit/m2invoice 适用场景与选型建议

xendit/m2invoice 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.02k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2022 年 07 月 26 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 xendit/m2invoice 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 xendit/m2invoice 我们能提供哪些服务?
定制开发 / 二次开发

基于 xendit/m2invoice 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 4.02k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 16
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 38
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2022-07-26