payflex/magento2-gateway 问题修复 & 功能扩展

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

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

payflex/magento2-gateway

Composer 安装命令:

composer require payflex/magento2-gateway

包简介

Payflex Gateway

README 文档

README

Overview

The Payflex Magento 2.4 Gateway plugin integrates Payflex with your Magento store, providing seamless payment processing.

Tested Magento2 Versions

  • Magento 2.4.5
  • Magento 2.4.6
  • Magento 2.4.7
  • Magento 2.4.8

Installation Steps

Follow these steps to install the Payflex Gateway plugin:

1a. Copy Plugin to Directory (Manual)

  • Paste the plugin into the appropriate directory: /app/code/ for a release (downloaded a zip), or /app/code/Payflex/Gateway if you're using the repo directly
  • This README.md should be located here if done correctly: /app/code/Payflex/Gateway/README.md

1b. Copy Plugin to Directory (Composer)

Add the following to your composer.json:

{
   "repositories": [
      {
         "type": "vcs",
         "url": "https://github.com/PayFlexSA/payflex-magento-2-4-module"
      }
   ]
}

Then run:

composer require payflex/magento2-gateway:^2.0

The ^2.0 constraint installs the latest tagged stable release (e.g. v2.0.2), not the master branch. Running composer update payflex/magento2-gateway later pulls the newest 2.x release. Omitting the constraint (a bare composer require payflex/magento2-gateway) can resolve to the dev-master branch, which is not recommended.

2. Run Magento Setup Commands

  • Open your terminal and navigate to your Magento root directory.

  • Execute the following commands:

    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy -f
    chmod -R 777 var/ pub/ pub/static/ generated/
    php bin/magento cache:clean
    

Upgrading from Previous Versions of This Plugin (<V2.0.0)

  1. Check Pending Orders:

    • Ensure there are no current orders pending payment that are newer than about an hour old. Existing orders that were completed will still contain their order notes but will effectively be treated as a separate gateway.
    • We suggest putting up a maintenance page while installing this module to avoid any risk of in-progress orders failing during the upgrade process
  2. Check your current config

    • Review your configuration for Payflex in the admin panel, make sure you have your client details because you will need to fill them in again at the end
  3. Backup:

    • Make a database and file backup before upgrading.
  4. Remove Old Module:

    • Delete the old /app/code/MR/ folder.
  5. Add New Module:

    • Add the new Payflex module in its place.
  6. Run Upgrade Commands:

    • Run the necessary commands as you usually would to activate the new module.
  7. Configuration:

    • Once the new module is active, input your client details and set up the configuration on the configuration page. All new orders should work as normal.
  8. Legacy files

    • Older modules needed to have symfony/lock installed via composer, and the SourceSandboxproduction.php file added to Magento/Config/Model/Config/. Once you upgrade to the new module, these can be removed if you wish, though leaving them shouldn't cause any issues.

Additional Information

  • Ensure that you have the necessary permissions to execute the commands.
  • It is recommended to back up your Magento store before performing the installation.
  • For any issues or support, please contact the Payflex support team.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2026-07-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固