如何在Magento 2中安装Ingenico电子支付?

时间:2019-04-09 13:56:40

标签: composer-php magento2

我无法在magento 2上安装Ingenico电子支付。 该文档建议使用composer(ingenico doc)进行安装,但是在“ composer require ingenico / ingenico_epayments_ogn2:3.3.1”之后,我无法解决以下错误:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for ingenico/ingenico_epayments_ogn2 3.3.1 -> satisfiable by ingenico/ingenico_epayments_ogn2[3.3.1].
    - ingenico/ingenico_epayments_ogn2 3.3.1 requires ingenico/library-ops-m2 ~3.3.0 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

我还尝试使用magento 2安装向导安装模块。但是对于“检查Cron脚本”和“检查组件依赖性”的就绪检查失败

我确定了引起问题的cron(更新),并且当我手动执行它时,出现了这个错误: “ / usr / bin / php /var/www/html/update/cron.php”

PHP Warning:  require_once(/var/www/html/update/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/update/app/bootstrap.php on line 15
PHP Stack trace:
PHP   1. {main}() /var/www/html/update/cron.php:0
PHP   2. require_once() /var/www/html/update/cron.php:7
PHP Fatal error:  require_once(): Failed opening required '/var/www/html/update/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/update/app/bootstrap.php on line 15
PHP Stack trace:
PHP   1. {main}() /var/www/html/update/cron.php:0
PHP   2. require_once() /var/www/html/update/cron.php:7

这是因为供应商文件夹不在更新文件夹中,而是在根目录中。

感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

使用以下方式安装此模块,并使用同时包含zip(库和扩展名)文件夹的软件包

composer config repositories.ingenico artifact /path/to/folder/with/package/
composer require ingenico/ingenico_epayments_ogn2
composer update